How to access webpack config variable in other js file
问题 I am running following command to run the app locally npm run start package.json ... "scripts": { "start": "concurrently --kill-others --kill-others-on-fail -p name --names \"config\" \"npm run start:config\"", "build": "npm run build:config", "build:config": "webpack --config ./webpack.config.config.js -p", "start:config": "webpack-dev-server --config ./webpack.config.config.dev.js --port 4200" }, ... I am trying to access env mode in scripts.js defined in webpack config js as shown below