SPIKE with Samnang and Justin on making React server render with Webpack!
- bundle
- cd client && npm i
- $(npm bin)/webpack -w
- open another terminal and start rails
- You can mark the globals to export in one of 2 ways: a. Use global.Something = Something (see Global.js) b. Declare in webpack config file
- models/execjs_renderer changes often require a server restart. However, changing the contents of the javascript file don't seem matter, so long as webpack recompiles it.