From 79a910c63befedda11f91c5211fe257c109a1361 Mon Sep 17 00:00:00 2001 From: Gerhard Sletten Date: Fri, 17 Jun 2016 15:03:20 +0200 Subject: [PATCH] Set sourcemap to false to avoid showing private dev enviroment in build files, and minify css --- lib/utils/webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/webpack.config.js b/lib/utils/webpack.config.js index 37499db6a54a6..75e5e887322d7 100644 --- a/lib/utils/webpack.config.js +++ b/lib/utils/webpack.config.js @@ -113,6 +113,7 @@ module.exports = (program, directory, suppliedStage, webpackPort = 1500, routes __PREFIX_LINKS__: program.prefixLinks, }), new ExtractTextPlugin('styles.css'), + new webpack.optimize.UglifyJsPlugin({sourceMap: false}), ] case 'build-html': return [ @@ -137,7 +138,7 @@ module.exports = (program, directory, suppliedStage, webpackPort = 1500, routes __PREFIX_LINKS__: program.prefixLinks, }), new webpack.optimize.DedupePlugin(), - new webpack.optimize.UglifyJsPlugin(), + new webpack.optimize.UglifyJsPlugin({sourceMap: false}), ] default: throw new Error(`The state requested ${stage} doesn't exist.`)