From 1ee5e75291e47aa2c47e170884977cc29f5d4d56 Mon Sep 17 00:00:00 2001 From: SleepWalker Date: Sat, 30 Jul 2016 19:40:07 +0300 Subject: [PATCH] #137: add hashes for js chunks --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 68bf087..dc153d1 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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()