mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 08:07:44 +01:00
Fix webpack production build error
This commit is contained in:
parent
a7b32cffe3
commit
4f7b528456
1 changed files with 5 additions and 1 deletions
|
@ -69,6 +69,7 @@ module.exports = {
|
|||
fs: "empty"
|
||||
},
|
||||
plugins: [
|
||||
new webpack.NoErrorsPlugin(),
|
||||
new webpack.optimize.CommonsChunkPlugin('vendor', '[chunkhash].vendor.js'),
|
||||
new WebpackCleanupPlugin(),
|
||||
new webpack.DefinePlugin({
|
||||
|
@ -92,6 +93,9 @@ module.exports = {
|
|||
template: './src/template.html',
|
||||
title: 'Maputnik'
|
||||
}),
|
||||
new webpack.optimize.DedupePlugin()
|
||||
//TODO: If the DedupePlugin errors happen
|
||||
// I guess this has todo that i use the Mapbox GL spec
|
||||
// at severall places from different locations?
|
||||
//new webpack.optimize.DedupePlugin()
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue