Add hash to the static JS/CSS

Closes #354
This commit is contained in:
Ildar Kamalov 2018-10-09 10:25:21 +03:00
parent 5718f55b9a
commit 814005021c

View File

@ -19,7 +19,7 @@ const config = {
},
output: {
path: PUBLIC_PATH,
filename: '[name].js',
filename: '[name].[chunkhash].js',
},
resolve: {
modules: ['node_modules'],
@ -94,10 +94,11 @@ const config = {
}),
new HtmlWebpackPlugin({
inject: true,
cache: false,
template: HTML_PATH,
}),
new ExtractTextPlugin({
filename: '[name].css',
filename: '[name].[contenthash].css',
}),
],
};