【rails/webpack】最小構成スタート時のコマンドメモ
gemfileにwebpackerとreact追加
webpacker4系だと動かないので、3系にしておく
gem 'webpacker', '~> 3.5.5' gem 'webpacker-react'
bundle install
webpacker install
bundle exec rails webpacker:install
webpacker reatct install
bundle exec bin/rails webpacker:install:react
css移動
app/javascript/assets/packa/application.js に
import '../assets/stylesheets/application'