You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`alias: {
////////////////////////////////////////////////////////////////
// Created alias for environment specific configuration for APIs
////////////////////////////////////////////////////////////////
_envConfig: path.join(_path, 'config', 'apis', NODE_ENV)
}`
Create different modules based on environment like development.js, production.js. And these modules will return config object. This way build will fail if we don't set NODE_ENV to correct value.
Then import * as envConfig from '_envConfig'; console.log(envConfig);
Hey, I have been using
generator-angular-webpack-es6
for a week now.I really like how it's structured in a context of separation of concerns.
I have one problem. My api.config.json
I want webpack to create angular config for the enviornment specific build.
In gulp I had a task for this
How do I do this with Webpack?
The text was updated successfully, but these errors were encountered: