- Generate new rails app using
--webpackflag
rails new myApp --webpack=vueNote:
- You can use
--webpack=angularfor angular application and--webpack=reactfor react.
| # spec/rails_helper.rb | |
| require_relative 'support/webpack_test_helper.rb' | |
| # ... | |
| config.before(:suite) do | |
| # Compile webpack if necessary. | |
| # Only runs if checksum of JS files has changed | |
| WebpackTestHelper.compile_webpack_assets | |
| end |