Webpacker, It-Just-Works, But How?
summary
Explains how the Webpacker gem actually orchestrates webpack to produce manifest.json and public_output_path and the static JS/CSS assets Rails serves, using config/webpacker.yml and the rails/webpacker Node package. Describes the runtime bits: bin/webpack, NODE_ENV-based configs, the webpack-dev-server proxy on localhost:3035, and options to run compile, watch, or dev-server. Calls out real pitfalls: expensive per-request cache‑key computation when compile is true, how to inspect the exported config, using webpack multicompiler for client/server bundles.
AI-written summary · about
chapters (4)
- 0:00Start
- 4:48Overall rails/webpacker Flow
- 27:24Developer Option 2:"webpack watch mode"
- 35:34Yak Shaving?








