Skip to content

gauravtiwari/webpack_on_rails

Repository files navigation

Webpack on Rails example app (with server rendering)

Minimal and simple setup to use webpack with Rails asset pipeline for React and ES6. We are using react-rails gem to render and mount react components with server rendering support, but using webpack compiled code - both on server and client.

Checkout the webpack config files and assets/webpack folder

Check out the app/assets/javascripts folder

components: Contains all react components splitted in directories (same namespace as rails views)
components.js: components manifest

Features

  • React with ES6 syntax
  • Babel transpiler
  • Webpack - possibilities are endless
  • Basic ActionCable integration
  • NPM support
  • Code watching
  • React Server and Client rendering

Running

git clone [email protected]:gauravtiwari/webpack_on_rails.git
cd webpack_on_rails
bundle install
npm install
chmod 777 start
./start
# Or Alternatively
bundle exec foreman start

About

Webpack and React on Rails with server rendering using asset pipeline.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published