From 77e3d93ad5cc1bc7271092a229a19f42db33f5a4 Mon Sep 17 00:00:00 2001 From: Daniel Peach Date: Fri, 6 Apr 2018 17:26:00 -0400 Subject: [PATCH] fix(build): turn off minification for deck-kayenta (#5132) --- webpack.config.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 8c8f76fb2f4..908fcb0298d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -35,14 +35,16 @@ function configure(env, webpackOpts) { devtool: IS_PRODUCTION ? 'source-map' : 'eval', optimization: { splitChunks: { chunks: 'all', }, - minimizer: IS_PRODUCTION ? [ - new UglifyJSPlugin({ - parallel: true, - cache: true, - test: /vendors/, - sourceMap: true, - }), - ] : [], // Disable minification unless production + minimizer: [], + // TODO(dpeach): figure out how we can minify deck-kayenta without breaking Angular DI. + // minimizer: IS_PRODUCTION ? [ + // new UglifyJSPlugin({ + // parallel: true, + // cache: true, + // test: /vendors/, + // sourceMap: true, + // }), + // ] : [], // Disable minification unless production }, resolve: { extensions: [ '.json', '.ts', '.tsx', '.js', '.jsx', '.css', '.less', '.html' ],