-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Update webpacker guides after version upgrade [ci-skip] #43152
Conversation
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.
Good catch! 👍 When you're happy with the changes, would you mind squashing the commits?
guides/source/webpacker.md
Outdated
@@ -51,7 +51,7 @@ To use Webpacker, you must install the Yarn package manager, version 1.x or up, | |||
|
|||
NOTE: Webpacker depends on NPM and Yarn. NPM, the Node package manager registry, is the primary repository for publishing and downloading open-source JavaScript projects, both for Node.js and browser runtimes. It is analogous to rubygems.org for Ruby gems. Yarn is a command-line utility that enables the installation and management of JavaScript dependencies, much like Bundler does for Ruby. | |||
|
|||
Webpacker is installed by default in Rails 6.0 and up. You can install it with a new project in some older versions by adding `--webpack` to the `rails new` command. Webpacker can be added in an existing project by running `bin/rails webpacker:install`. This installation command creates the following local files: | |||
Webpacker is installed with a new project by adding `--webpack` to the `rails new` command. Webpacker can be added in an existing project by running `bin/rails webpacker:install`. This installation command creates the following local files: |
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.
Since the webpacker:install
task is not part of Rails by default, I wanted to clarify these instructions. What do you think about the following rewording?
Webpacker is installed with a new project by adding `--webpack` to the `rails new` command. Webpacker can be added in an existing project by running `bin/rails webpacker:install`. This installation command creates the following local files: | |
To include Webpacker in a new project, add `--webpack` to the `rails new` command. To add Webpacker to an existing project, add the `webpacker` gem to the project's `Gemfile`, run `bundle install`, and then run `bin/rails webpacker:install`. | |
Installing Webpacker creates the following local files: |
…ult install webpacker Webpacker gem has removed the framework installer and Rails app installer has removed the support to pass the framework names to webpack option Webpacker engine guides are removed
04ea548
to
b7f67b4
Compare
@jonathanhefner Addressed the comment and squashed commits in one. Thanks 👍🏼 😊 |
Thank you, @abhaynikam! 🙌 |
Couple things in the webpacker guide weren't correct. Since guides point to the Rails Edge version I thought we should rectify the guides.
PR fixes following things: