-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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 --skip-yarn
in favor of --skip-javascript
#34275
Remove --skip-yarn
in favor of --skip-javascript
#34275
Conversation
r? @kamipo (@rails-bot has picked a reviewer for you, use r? to override) |
@@ -5,7 +5,7 @@ Rails.application.config.assets.version = '1.0' | |||
|
|||
# Add additional assets to the asset load path. | |||
# Rails.application.config.assets.paths << Emoji.images_path | |||
<%- unless options[:skip_yarn] -%> | |||
<%- unless options[:skip_javascript] -%> | |||
# Add Yarn node_modules folder to the asset load path. | |||
Rails.application.config.assets.paths << Rails.root.join('node_modules') |
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 we can remove this since we use webpack for js(#33079)?
@@ -5,7 +5,7 @@ Rails.application.config.assets.version = '1.0' | |||
|
|||
# Add additional assets to the asset load path. | |||
# Rails.application.config.assets.paths << Emoji.images_path | |||
<%- unless options[:skip_yarn] -%> | |||
<%- unless options[:skip_javascript] -%> | |||
# Add Yarn node_modules folder to the asset load path. | |||
Rails.application.config.assets.paths << Rails.root.join('node_modules') |
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 we can remove this since we use webpack for js(#33079)?
Since rails#33079 Webpacker the default JavaScript compiler for Rails. Webpacker uses `yarn` so seems like it doesn't make sense for Rails to keep `--skip-yarn` option.
54aeee4
to
2bf9887
Compare
…by default Related to rails#33079
2bf9887
to
129f8ac
Compare
With rails/rails#34275 rails new option named skip_yarn is changed into skip_javascript. This option allows us to still use sprockets for JS in our sandbox.
Since #33079 Webpacker the default JavaScript compiler for Rails.
Webpacker uses
yarn
so seems like it doesn't make sense for Rails to keep--skip-yarn
option.