changed webpack output filenames to use contenthash

This commit is contained in:
Danny Coates 2019-03-17 19:21:28 -07:00
parent 5dedad8ae7
commit ad9070b7c6
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 7 additions and 6 deletions

View File

@ -40,7 +40,7 @@ const serviceWorker = {
test: /\.(png|jpg)$/,
loader: 'file-loader',
options: {
name: '[name].[hash:8].[ext]'
name: '[name].[contenthash:8].[ext]'
}
},
{
@ -49,7 +49,7 @@ const serviceWorker = {
{
loader: 'file-loader',
options: {
name: '[name].[hash:8].[ext]'
name: '[name].[contenthash:8].[ext]'
}
},
{
@ -82,7 +82,8 @@ const web = {
ios: ['./ios/ios.js']
},
output: {
filename: '[name].[hash:8].js',
chunkFilename: '[name].[contenthash:8].js',
filename: '[name].[contenthash:8].js',
path: path.resolve(__dirname, 'dist')
},
module: {
@ -124,7 +125,7 @@ const web = {
test: /\.(png|jpg)$/,
loader: 'file-loader',
options: {
name: '[name].[hash:8].[ext]'
name: '[name].[contenthash:8].[ext]'
}
},
{
@ -133,7 +134,7 @@ const web = {
{
loader: 'file-loader',
options: {
name: '[name].[hash:8].[ext]'
name: '[name].[contenthash:8].[ext]'
}
},
{
@ -189,7 +190,7 @@ const web = {
new webpack.EnvironmentPlugin(['NODE_ENV']),
new webpack.IgnorePlugin(/\.\.\/dist/), // used in common/*.js
new ExtractTextPlugin({
filename: '[name].[hash:8].css'
filename: '[name].[md5:contenthash:8].css'
}),
new VersionPlugin(), // used for the /__version__ route
new AndroidIndexPlugin(),