Skip to content

Commit

Permalink
update hash
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhiqimail committed Feb 22, 2021
1 parent 081f500 commit 7626ebf
Show file tree
Hide file tree
Showing 3 changed files with 482 additions and 471 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@
},
"repository": {
"type": "git",
"url": "https://gitee.com/weizhiqimail/react-webpack-env.git"
"url": "https://github.com/weizhiqimail/react-webpack-typescript-template.git"
}
}
8 changes: 3 additions & 5 deletions scripts/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = merge(baseConfig, {

output: {
path: path.resolve(__dirname, '../dist'),
filename: 'js/main-[chunkhash].js'
filename: 'js/main-[name]-[contenthash:8].js'
},

devServer: {
Expand Down Expand Up @@ -76,10 +76,8 @@ module.exports = merge(baseConfig, {
},
}),
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
filename: 'static/css/[name].[contenthash:8].css',
chunkFilename: 'static/css/[name].[contenthash:8].chunk.css',
filename: 'css/[name].[contenthash:8].css',
chunkFilename: 'css/[name].[contenthash:8].chunk.css',
}),
new webpack.PrefetchPlugin('react'),
],
Expand Down
Loading

0 comments on commit 7626ebf

Please sign in to comment.