Created
October 2, 2020 23:44
-
-
Save nivrith/70137c4969420a728582d5786a1f38e6 to your computer and use it in GitHub Desktop.
Webpack Config for Commandline Variables for Angular
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { CustomWebpackBrowserSchema, TargetOptions } from '@angular-builders/custom-webpack'; | |
| import * as webpack from 'webpack'; | |
| export default ( | |
| config: webpack.Configuration, | |
| options: CustomWebpackBrowserSchema, | |
| targetOptions: TargetOptions | |
| ) => { | |
| config.plugins.push( | |
| new webpack.DefinePlugin({ | |
| APP_ENV: process.env.APP_ENV, | |
| }) | |
| ); | |
| return config; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment