-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Description
Bug Report or Feature Request (mark with an x
)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Versions.
@angular/cli: 1.2.4
node: 6.10.3
os: win32 x64
@angular/animations: 4.3.1
@angular/common: 4.3.1
@angular/compiler: 4.3.1
@angular/core: 4.3.1
@angular/forms: 4.3.1
@angular/http: 4.3.1
@angular/platform-browser: 4.3.1
@angular/platform-browser-dynamic: 4.3.1
@angular/router: 4.3.1
@angular/cli: 1.2.4
@angular/compiler-cli: 4.3.1
@angular/language-service: 4.3.1
Repro steps.
- Create a new project through ng new and install dependencies
- Import environments/environment in app.component
- Add some conditional behavior depending on the environment
- Serve the project with env attribute (tried all these)
ng serve --e=prod --env=prod -e=prod -env=prod --environment=prod -environment=pro
d
Desired functionality.
It should import the correct environment properties accordingly to the flag used.
Mention any other details that might be useful.
It stopped working after a yarn upgrade ran on my project and then I tested with a fresh new project generated by the cli.
twittwer, BashPrime, worxli, sant0shg and kl4n4
Metadata
Metadata
Assignees
Labels
No labels