Skip to content

Commit

Permalink
Merge pull request #73 from aclu-people-power/stuart/webpack-tweak
Browse files Browse the repository at this point in the history
Tweak to unbreak bundle
  • Loading branch information
stuartsan authored Apr 6, 2017
2 parents 58672dd + cbc7e3d commit 2ec6efe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2ec6efe

Please sign in to comment.