Skip to content

Commit

Permalink
fix(build): turn off minification for deck-kayenta (#5132)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeach committed Apr 6, 2018
1 parent d0ebfd4 commit 77e3d93
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions webpack.config.js
Expand Up @@ -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' ],
Expand Down

0 comments on commit 77e3d93

Please sign in to comment.