-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Rename bin/webpack[-dev-server] to bin/webpacker[-dev-server] #3252
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
Conversation
Renamed `/bin/webpack` to `/bin/webpacker` and `/bin/webpack-dev-server` to `bin/webpacker-dev-server` to avoid confusion with underlying webpack executables.
CI passes. What else should be tested? Most changes are in the docs. |
|
||
18. Try running `RAILS_ENV=production bin/rails assets:precompile`. If all goes well, don't forget to clean the generated assets with `bin/rails assets:clobber`. | ||
|
||
19. Run `yarn add webpack-dev-server` if those are not already in your dev dependencies. Make sure you're using v4+. | ||
|
||
20. Try your app! | ||
|
||
21. Update any scripts that called `/bin/webpack` or `bin/webpack-dev-server` to `/bin/webpacker` or `bin/webpacker-dev-server` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be the 20th step, the last step should always be Try your app!
😀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've got some other PRs with changes here, so I'll clean up all at once!
|
||
18. Try running `RAILS_ENV=production bin/rails assets:precompile`. If all goes well, don't forget to clean the generated assets with `bin/rails assets:clobber`. | ||
|
||
19. Run `yarn add webpack-dev-server` if those are not already in your dev dependencies. Make sure you're using v4+. | ||
|
||
20. Try your app! | ||
|
||
21. Update any scripts that called `/bin/webpack` or `bin/webpack-dev-server` to `/bin/webpacker` or `bin/webpacker-dev-server` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
21. Update any scripts that called `/bin/webpack` or `bin/webpack-dev-server` to `/bin/webpacker` or `bin/webpacker-dev-server` | |
21. Update any scripts that called `bin/webpack` to `bin/webpacker` and `bin/webpack-dev-server` to `bin/webpacker-dev-server` |
i think it can reduce confusion
Nice! |
These commands have been renamed in rails#3252.
These commands have been renamed in rails/webpacker#3252.
Renamed
/bin/webpack
to/bin/webpacker
and/bin/webpack-dev-server
to
bin/webpacker-dev-server
to avoid confusion with underlying webpackexecutables.
Addresses #3237.