-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Check if environment is production-like in stripped-build-plugins #5234
Conversation
Seems good for us to be consistent here, but there are only three possible values for I'd prefer to change the |
@rwjblue I agree that ember-cli doesn't support it in theory but I also know that historically we've loosely matched That said, changing to |
@rwjblue, @runspired Well prior to updating to 2.16 (coming from 2.9) it was working fine with the production-like environments, it kinda threw a wrench in my day after the upgrade. Maybe keeping it loose for now but adding a deprecation warning if a production-like environment is found: if (env !== 'production' && /production/.test(env)) {
warn("production like environments are deprecated, if using ember-cli-deploy, please configure your build using 'production'");
} This would ensure folks like me, who expected the old behaviour are given fair warning and a path for migration before completely flipping the table on them. Sorry about the late reply, it was a tricky week |
@IceDragon200 that seems like a reasonable compromise. Do you need this change back-ported into 2.16? |
@bmac Well I've already bitten the bullet and changed my code to use environment variables, so, not for me, but for anyone else that encounters this problem. tl;dr Sure go ahead :) |
@IceDragon200 fwiw what I was saying was that as long as both checks match this should resolve your issue. Granted |
I added a pr for introducing the production like warning. #5239 |
On request, a PR, to fix the production like environment issue
Related
#5233