#137: add hashes for js chunks

This commit is contained in:
SleepWalker 2016-07-30 19:40:07 +03:00
parent 9abbe2ebab
commit 1ee5e75291

View File

@ -82,7 +82,7 @@ var webpackConfig = {
output: {
path: path.join(__dirname, 'dist'),
publicPath: '/',
filename: '[name].js'
filename: '[name].js?[hash]'
},
resolve: {
@ -141,7 +141,7 @@ var webpackConfig = {
fetch: 'imports?this=>self!exports?self.fetch!whatwg-fetch'
})
].concat(isTest ? [] : [
new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.js')
new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.js?[hash]')
]).concat(isProduction ? [
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin()