mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 16:01:15 +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"
|
fs: "empty"
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
new webpack.NoErrorsPlugin(),
|
||||||
new webpack.optimize.CommonsChunkPlugin('vendor', '[chunkhash].vendor.js'),
|
new webpack.optimize.CommonsChunkPlugin('vendor', '[chunkhash].vendor.js'),
|
||||||
new WebpackCleanupPlugin(),
|
new WebpackCleanupPlugin(),
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
|
@ -92,6 +93,9 @@ module.exports = {
|
||||||
template: './src/template.html',
|
template: './src/template.html',
|
||||||
title: 'Maputnik'
|
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