From cbc7e3d81f6a0c7cbcb62cc57cede833e8653925 Mon Sep 17 00:00:00 2001 From: Stuart Sandine Date: Thu, 6 Apr 2017 13:29:02 -0700 Subject: [PATCH] Tweak to unbreak bundle --- config/prod.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/prod.js b/config/prod.js index e1c066c..ffec305 100644 --- a/config/prod.js +++ b/config/prod.js @@ -10,6 +10,12 @@ module.exports = function(env){ filename: '[name].[chunkhash].js' }, devtool: 'source-map', + // Uglify is blowing up trying to further minify mapbox-gl + // so for now just do not parse it -- it is already minified. + // https://github.com/mapbox/mapbox-gl-js/issues/4359 + module: { + noParse: /(mapbox-gl)\.js$/, + }, plugins: [ new webpack.LoaderOptionsPlugin({ minimize: true,