mirror of
https://github.com/maputnik/editor.git
synced 2026-06-22 15:17:29 +00:00
Add hash to vendor bundle
This commit is contained in:
@@ -46,7 +46,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, 'public'),
|
path: path.join(__dirname, 'public'),
|
||||||
filename: '[chunkhash].js'
|
filename: '[chunkhash].app.js'
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
@@ -69,7 +69,7 @@ module.exports = {
|
|||||||
fs: "empty"
|
fs: "empty"
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.bundle.js'),
|
new webpack.optimize.CommonsChunkPlugin('vendor', '[chunkhash].vendor.js'),
|
||||||
new WebpackCleanupPlugin(),
|
new WebpackCleanupPlugin(),
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
'process.env': {
|
'process.env': {
|
||||||
@@ -90,7 +90,7 @@ module.exports = {
|
|||||||
}),
|
}),
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
template: './src/template.html',
|
template: './src/template.html',
|
||||||
title: 'Mapolo'
|
title: 'Mapital'
|
||||||
}),
|
}),
|
||||||
new webpack.optimize.DedupePlugin()
|
new webpack.optimize.DedupePlugin()
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user