Skip to content

Commit 7626ebf

Browse files
committed
update hash
1 parent 081f500 commit 7626ebf

File tree

3 files changed

+482
-471
lines changed

3 files changed

+482
-471
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@
7272
},
7373
"repository": {
7474
"type": "git",
75-
"url": "https://gitee.com/weizhiqimail/react-webpack-env.git"
75+
"url": "https://github.com/weizhiqimail/react-webpack-typescript-template.git"
7676
}
7777
}

scripts/webpack.config.prod.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = merge(baseConfig, {
1616

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

2222
devServer: {
@@ -76,10 +76,8 @@ module.exports = merge(baseConfig, {
7676
},
7777
}),
7878
new MiniCssExtractPlugin({
79-
// Options similar to the same options in webpackOptions.output
80-
// both options are optional
81-
filename: 'static/css/[name].[contenthash:8].css',
82-
chunkFilename: 'static/css/[name].[contenthash:8].chunk.css',
79+
filename: 'css/[name].[contenthash:8].css',
80+
chunkFilename: 'css/[name].[contenthash:8].chunk.css',
8381
}),
8482
new webpack.PrefetchPlugin('react'),
8583
],

0 commit comments

Comments
 (0)