mirror of
https://github.com/maputnik/editor.git
synced 2026-07-27 16:27:26 +00:00
Fix webpack production build error
This commit is contained in:
@@ -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()
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user