mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 06:07:45 +01:00
Add hash to vendor bundle
This commit is contained in:
parent
4f73ab5b6a
commit
8441c562ce
1 changed files with 3 additions and 3 deletions
|
@ -46,7 +46,7 @@ module.exports = {
|
|||
},
|
||||
output: {
|
||||
path: path.join(__dirname, 'public'),
|
||||
filename: '[chunkhash].js'
|
||||
filename: '[chunkhash].app.js'
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
|
@ -69,7 +69,7 @@ module.exports = {
|
|||
fs: "empty"
|
||||
},
|
||||
plugins: [
|
||||
new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.bundle.js'),
|
||||
new webpack.optimize.CommonsChunkPlugin('vendor', '[chunkhash].vendor.js'),
|
||||
new WebpackCleanupPlugin(),
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
|
@ -90,7 +90,7 @@ module.exports = {
|
|||
}),
|
||||
new HtmlWebpackPlugin({
|
||||
template: './src/template.html',
|
||||
title: 'Mapolo'
|
||||
title: 'Mapital'
|
||||
}),
|
||||
new webpack.optimize.DedupePlugin()
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue