mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-28 16:00:24 +05:30
#137: add hashes for js chunks
This commit is contained in:
parent
9abbe2ebab
commit
1ee5e75291
@ -82,7 +82,7 @@ var webpackConfig = {
|
|||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, 'dist'),
|
path: path.join(__dirname, 'dist'),
|
||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
filename: '[name].js'
|
filename: '[name].js?[hash]'
|
||||||
},
|
},
|
||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
@ -141,7 +141,7 @@ var webpackConfig = {
|
|||||||
fetch: 'imports?this=>self!exports?self.fetch!whatwg-fetch'
|
fetch: 'imports?this=>self!exports?self.fetch!whatwg-fetch'
|
||||||
})
|
})
|
||||||
].concat(isTest ? [] : [
|
].concat(isTest ? [] : [
|
||||||
new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.js')
|
new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.js?[hash]')
|
||||||
]).concat(isProduction ? [
|
]).concat(isProduction ? [
|
||||||
new webpack.optimize.DedupePlugin(),
|
new webpack.optimize.DedupePlugin(),
|
||||||
new webpack.optimize.UglifyJsPlugin()
|
new webpack.optimize.UglifyJsPlugin()
|
||||||
|
Loading…
Reference in New Issue
Block a user