-
Notifications
You must be signed in to change notification settings - Fork 492
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
Support Rails 6 asset recompilation through webpacker #656
Support Rails 6 asset recompilation through webpacker #656
Conversation
Hi @d4be4st, just a friendly ping. Can you please check this PR. |
@rstacruz Can you please check this PR.. |
Can you please merge this? |
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.
Hi, thanks for the PR. It's good overall, I'd just like to add package.json
to asset dirs and node_modules
to shared dirs.
In Rails 6, Webpacker is the default JavaScript compiler. This commit add app/javascript/ to asset_dir as it is the default directory used by Webpacker.
fad4069
to
5110989
Compare
This reverts commit 5f413c2.
This reverts commit 5f413c2.
Reverted in #723, the main reason being backward compatibility. This still doesn't prevent you from using Webpack with Mina on your project because you can adjust the variables in your project's # config/deploy.rb
set :compiled_asset_path, ['public/assets', 'public/packs']
set :asset_dirs, ['vendor/assets/', 'app/assets/', 'app/javascript/', 'package.json']
set :shared_dirs, fetch(:shared_dirs, []).push('log', 'tmp/cache', 'node_modules', *fetch(:compiled_asset_path)) |
In Rails 6, Webpacker is the default JavaScript compiler.
This PR adds app/javascript/ to asset_dir & public/packs/ to complied_asset_path as it is the default directory used by Webpacker.