Skip to content

Commit

Permalink
Merge pull request #1530 from Automattic/fix/webpack-chunkname-with-hash
Browse files Browse the repository at this point in the history
Fix/webpack chunkname with hash
  • Loading branch information
belcherj authored Aug 19, 2019
2 parents 9830dd7 + 8941b5b commit 4bc857e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ module.exports = () => {

return {
context: __dirname + '/lib',
optimization: {
namedModules: true,
namedChunks: true,
splitChunks: {
cacheGroups: {
default: false,
},
},
},
mode: isDevMode ? 'development' : 'production',
devtool:
process.env.SOURCEMAP || (isDevMode && 'cheap-module-eval-source-map'),
Expand All @@ -29,7 +20,7 @@ module.exports = () => {
output: {
path: __dirname + '/dist',
filename: 'app.js',
chunkFilename: '[name].js',
chunkFilename: '[name].[chunkhash].js',
...(config.is_app_engine && {
publicPath: config.web_app_url + '/',
}),
Expand Down

0 comments on commit 4bc857e

Please sign in to comment.