Skip to content

Commit

Permalink
🐛 Fix Build assets hash
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonBoy committed Nov 13, 2019
1 parent 48a9c3f commit e6ac125
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports.ENTRY_NAME = ENTRY_NAME;
exports.getName = function getName(chunkName, ext, hashName, DEV_MODE) {
return (
chunkName +
(DEV_MODE ? '.' : '-[' + (hashName ? hashName : 'chunkhash') + ':9].') +
(DEV_MODE ? '.' : '-[' + (hashName ? hashName : 'contenthash') + ':9].') +
ext
);
};
Expand Down
4 changes: 1 addition & 3 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const webpackConfig = webpackMerge(baseWebpackConfig, {
output: {
publicPath: config.getStaticAssetsEndpoint() + utils.getPublicPath(),
filename: utils.getName('[name]', 'js', '', false),
chunkFilename: '[name]-[chunkhash].chunk.js',
},
module: {
rules: [
Expand All @@ -42,8 +41,7 @@ const webpackConfig = webpackMerge(baseWebpackConfig, {
plugins: [
new VueLoaderPlugin(),
new MiniCssExtractPlugin({
filename: '[name]-[hash:9].css',
chunkFilename: '[id]-[hash:9].css',
filename: utils.getName('[name]', 'css', 'contenthash', false),
}),
],
optimization: {
Expand Down

0 comments on commit e6ac125

Please sign in to comment.