Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
fix(webpack_config/client): different chunkFilename in prod/dev
Browse files Browse the repository at this point in the history
fix(webpack_config/client): different chunkFilename in prod/dev
  • Loading branch information
Metnew committed Nov 6, 2017
1 parent 9ce7a7a commit 3e32c02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webpack_config/client/webpack.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const definePluginArgs = {
// use hash filename to support long-term caching in production
// NOTE: [chunkhash] leads to high memory consumption
const filename = isProduction ? '[name].[hash:6].js' : '[name].js'
const chunkFilename = isProduction ? '[name].[chunkhash:6].js' : '[name].js'
const hints = isProduction ? 'warning' : false
const devtool = isProduction ? 'cheap-source-map' : 'eval'

Expand All @@ -42,7 +43,7 @@ const baseBuild = {
filename,
publicPath,
path: CLIENT_DIST_PATH,
chunkFilename: '[name].[hash:6].js',
chunkFilename,
crossOriginLoading: 'anonymous'
},
performance: {
Expand Down

0 comments on commit 3e32c02

Please sign in to comment.