From e969ef80e15d403131a8c45cc902fe8d3ad7db14 Mon Sep 17 00:00:00 2001 From: Sathish T Date: Tue, 6 Aug 2019 14:18:56 +0530 Subject: [PATCH] Config changed from true/false to 'yes'/''no' --- client/webpack.config.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/webpack.config.js b/client/webpack.config.js index 0692250..0812de6 100644 --- a/client/webpack.config.js +++ b/client/webpack.config.js @@ -13,8 +13,8 @@ module.exports = async function (env) { watchprofile = 'no' } else { - if (env.browser == undefined) {env.browser = true} - browserprofile = JSON.parse(env.browser) || true + if (env.browser == undefined) {env.browser = 'yes'} + browserprofile = env.browser || 'yes' watchprofile = env.watch || 'yes' } const isProd = buildenvironment === 'production' @@ -22,8 +22,8 @@ module.exports = async function (env) { var buildenvironment = env.environment || process.env.npm_package_extbuild_defaultenvironment var buildverbose = env.verbose || process.env.npm_package_extbuild_defaultverbose if (buildprofile == 'all') { buildprofile = '' } - if (env.treeshake == undefined) {env.treeshake = false} - var treeshake = env.treeshake ? JSON.parse(env.treeshake) : false + if (env.treeshake == undefined) {env.treeshake = 'no'} + var treeshake = env.treeshake ? env.treeshake : 'no' var basehref = env.basehref || '/' var mode = isProd ? 'production': 'development' @@ -40,8 +40,8 @@ module.exports = async function (env) { new ExtWebpackPlugin({ framework: 'extjs', port: port, - emit: true, - browser: false, + emit: 'yes', + browser: 'no', treeshake: treeshake, watch: watchprofile, profile: buildprofile,