File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 33rescript: yarn res:dev
44redis: redis-server
55rails: bundle exec rails s -p 3000
6- wp-client: HMR=true RAILS_ENV=development NODE_ENV=development bin/shakapacker-dev-server
7- wp-server: bundle exec rake react_on_rails:locale && HMR=true SERVER_BUNDLE_ONLY=yes bin/shakapacker --watch
6+ # Sleep to allow rescript files to compile before starting webpack
7+ wp-client: sleep 5 && RAILS_ENV=development NODE_ENV=development bin/shakapacker-dev-server
8+ wp-server: sleep 5 && bundle exec rake react_on_rails:locale && HMR=true SERVER_BUNDLE_ONLY=yes bin/shakapacker --watch
Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ redis: redis-server
77# upon saving rather than when you refresh your browser page.
88# Note, if using React on Rails localization you will need to run
99# `bundle exec rake react_on_rails:locale` before you run bin/shakapacker
10- webpack: sh -c 'bundle exec rake react_on_rails:locale && rm -rf public/packs/* || true && bin/shakapacker -w'
10+ # Sleep 5 to allow other rescript files to build
11+ webpack: sleep 5 && sh -c 'bundle exec rake react_on_rails:locale && rm -rf public/packs/* || true && bin/shakapacker -w'
You can’t perform that action at this time.
0 commit comments