This Rails app is meant to demonstrate the efficacy of rails/webpacker#83
bundle
and such, then do one of the following:
rails webpacker:install
- Don't overwrite
application.js
though.
- Then run
foreman start
- Navigate to http://localhost:3000. You should get no javascript errors.
- Install the angular build:
rails webpacker:install:angular
- Navigate to http://localhost:3000/angular. It should say "Hello Angular"
- Install the angular build:
rails webpacker:install:react
- Navigate to http://localhost:3000/react. It should say "Hello React!"
- Run
rails webpacker:compile
. It should work and the contents ofpublic/packs
should look good. - Run
git stash -u
to clear all the generated files.