Fix webpack production build error

This commit is contained in:
lukasmartinelli 2016-09-20 17:14:41 +02:00
parent a7b32cffe3
commit 4f7b528456

View file

@ -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()
] ]
}; };