From 4f7b528456796b7e78d8be71d90b1ec2d5896375 Mon Sep 17 00:00:00 2001 From: lukasmartinelli Date: Tue, 20 Sep 2016 17:14:41 +0200 Subject: [PATCH] Fix webpack production build error --- webpack.production.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webpack.production.config.js b/webpack.production.config.js index a183d90..a8d6c28 100644 --- a/webpack.production.config.js +++ b/webpack.production.config.js @@ -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() ] };