Skip to content

Instantly share code, notes, and snippets.

@hunterae
Last active August 1, 2019 19:50
Show Gist options
  • Save hunterae/8cf6aba2cb48be171fdb08ddd8d31176 to your computer and use it in GitHub Desktop.
Save hunterae/8cf6aba2cb48be171fdb08ddd8d31176 to your computer and use it in GitHub Desktop.
Install or add Webpacker
// ------ FOR A NEW RAILS APPLICATION --------
// From command line
rails new webpackerapp --skip-sprockets --webpack
// ------ FOR AN EXISTING RAILS APPLICATION --------
// Or add to Gemfile:
gem 'webpacker'
// From command line
bundle install
bundle exec rails webpacker:install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment