angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng serve --configuration local with production FALSE still serves in production mode

Open stellasoft-will opened this issue 8 years ago • 2 comments

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Area

- [ ] devkit
- [x] schematics

Versions

v8.11.3

Repro steps

new project create configuration that has production "false" with environment file with production false, then serve. Still serves as production true, which then pops up warning about this.

The log given by the failure

N/A

Desired functionality

Should it not serve production false if false value is set in environment file?

Mention any other details that might be useful

stellasoft-will avatar Jul 04 '18 08:07 stellasoft-will

The environment file contains only runtime variables. It doesn't affect build options. You should use the configuration options in angular.json for build options.

filipesilva avatar Aug 10 '18 08:08 filipesilva

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.