Merge pull request #1496 from getredash/v1fixes

Add content hash to JS/CSS build files. Closes #1450
This commit is contained in:
Arik Fraimovich 2017-01-01 10:09:08 +02:00 committed by GitHub
commit 4e218b76ae

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: {