Skip to content

Commit

Permalink
fix(build-config): use [name]-[chunkhash] as chunk names
Browse files Browse the repository at this point in the history
[id] seems to be the same as [name] and before this change the tests
would fail because "vendor-vendor-a3feb.js" does not match
/vendor-[0-9a-f]+/
  • Loading branch information
ZauberNerd committed Mar 26, 2018
1 parent 832cf04 commit 83021d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/build-config/configs/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
publicPath: '/',
pathinfo: true,
filename: getAssetPath('[name]-[chunkhash:16].js'),
chunkFilename: getAssetPath('[name]-[id]-[chunkhash:16].js'),
chunkFilename: getAssetPath('[name]-[chunkhash:16].js'),
devtoolModuleFilenameTemplate: function(info) {
return path
.relative(hopsConfig.appDir, info.absoluteResourcePath)
Expand Down

0 comments on commit 83021d4

Please sign in to comment.