Add content hash to JS/CSS build files. Closes #1450

This commit is contained in:
Arik Fraimovich 2016-12-30 22:40:51 +02:00
parent 48faf50db6
commit bb24b878c6

View File

@ -14,7 +14,7 @@ var config = {
output: {
// path: process.env.NODE_ENV === 'production' ? './dist' : './dev',
path: './dist',
filename: '[name].js',
filename: '[name].[chunkhash].js',
},
plugins: [
@ -46,7 +46,7 @@ var config = {
// template: __dirname + '/app/' + 'index.html'
template: './app/index.html'
}),
new ExtractTextPlugin('styles.css')
new ExtractTextPlugin('styles.[chunkhash].css')
],
module: {