Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@angular/cli): add environment file to compilerHost #4475

Merged
merged 1 commit into from
Feb 8, 2017

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Feb 7, 2017

Fixes #4375

const { appConfig, projectRoot, buildOptions } = wco;

// Read the environment, and set it in the compiler host.
const appRoot = path.resolve(projectRoot, wco.appConfig.root);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't wco.appConfig.root be appConfig.root since it was already destructured from wco? (same on the next 2 lines too)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. done.

@hansl hansl force-pushed the environment-fix branch 2 times, most recently from 2f5991b to 7ae5e0c Compare February 7, 2017 22:33
@hansl hansl merged commit 2797a89 into angular:master Feb 8, 2017
MRHarrison pushed a commit to MRHarrison/angular-cli that referenced this pull request Feb 9, 2017
asnowwolf pushed a commit to asnowwolf/angular-cli that referenced this pull request Apr 12, 2017
@hansl hansl deleted the environment-fix branch August 2, 2018 19:57
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prod environment file not use when I build with --aot flag
3 participants