-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Remove production build resource filtering behaviour #262
Comments
I don't particularly think this is a good solution. Shipping needless bytes to all users that don't manually audit their dependencies/devDependencies seems like a mega-trolly thing to do. |
@rwjblue I understand and that was the original impetus behind the current implementation. I feel like Welcome:
No welcome:
|
Why not just have folks add welcome in the tutorial? |
Because welcome is aimed more at folks who just setup a new Ember app who may or may not have followed the tutorial |
Sure, and those folks aren't doing deployments... |
Basically, the proposed change negatively impacts all users that haven't manually removed this addon. Whereas the current implementation seems to negatively impact a much smaller subset (those that |
That's what's been so surprising ... 😄 There seem to be a good number of long-time Ember folks who fire up a brand new app, make sure it's running smoothly in dev and then push a deploy to make sure everything is working. And then are majorly trolled by the fact that "this was just working locally, what is going on in production?" I'm ambivalent on the change, so will step out at this point, but that's the context that I've seen repeatedly here. But I agree with you on the other concern, it's why you and I built it the way it's built in the first place 😉 |
For example, basically everyone of these addons that have a demo app would now be shipping extra code: https://emberobserver.com/code-search?codeQuery=ember-welcome-page&fileFilter=package.json Since |
This can be fixed a number of ways though, that doesn't also negatively impact the larger set of users. For example:
|
I would be in favor of removing welcome by default or possibly moving the contents into the actual app that is generated. I believe other frameworks tend to have their default pages built inside the app, rather than from an external package. |
How do we come to a resolution here? |
I think we should leave it like it is now. |
At the moment the addon removes all of the resources from the build when doing a production build. Given that at the moment the default
npm build
command is a production build, it means that the default deploy experience is a broken app, since it will try to render a non-existent<WelcomePage>
component.The text was updated successfully, but these errors were encountered: