When using the latest CLI and webpack an environment.js file gets written to my src folder containing whatever I add to the project environments files. That’s great as it stands, but now I need to use some of those values within the webpack.config.js scripts
I do not want to pass everything to the CLI via cmdLine options, there are quite a few more than these that I need to use – I am trying to generate differently skinned apps based on which --env file name I pass to the CLI
For Example, what do I need to do to use environment values that I have added (title, baseURL, & client) within the primary config?
// primary config: const title = 'environment.title; const outDir = path.resolve(__dirname, project.platform.output); const srcDir = path.resolve(__dirname, 'src'); const nodeModulesDir = path.resolve(__dirname, 'node_modules'); const baseUrl = environment.baseUrl + '-' + environment.client;