- Make sure that you installed webpacker:
yarn add @rails/webpacker
bundle exec rails webpacker:install
- Then add needest packages:
yarn add jquery bootstrap-sass font-awesome
- If you want, you can change the entrypoint folder from
app/javascript
toapp/webpack
. Make sure that you changedsource_path
in thewebpacker.yml
to the new folder.