Skip to content
Permalink
Browse files

fix(app): Debug flag on build not taken into account for JS

  • Loading branch information...
rstoenescu committed Oct 3, 2019
1 parent 44ef629 commit 66d0618784ee659f2a4cb54d43459006ae00bacc
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/lib/webpack/create-chain.js
@@ -298,6 +298,8 @@ module.exports = function (cfg, configName) {
if (cfg.ctx.debug) {
// reset default webpack 4 minimizer
chain.optimization.minimizers.delete('js')
// also:
chain.optimization.minimize(false)
}
else if (cfg.build.minify) {
const TerserPlugin = require('terser-webpack-plugin')

0 comments on commit 66d0618

Please sign in to comment.
You can’t perform that action at this time.