Commit 6858a5a
Fix shakapacker.yml template to prevent 'Slow setup' warnings in development (#1850)
The installer was generating shakapacker.yml with compile: true in development,
causing unnecessary 'Slow setup for development' warnings when using Procfiles
with bin/dev that already run bin/shakapacker-dev-server or bin/shakapacker --watch.
Changes:
- Set compile: false in default section (inherited by development and production)
- Remove compile: true from development section (inherits false from default)
- Keep compile: true in test section (on-demand compilation needed for tests)
- Add clarifying comments explaining when to use compile: true vs false
This prevents Rails from attempting on-demand compilation when a webpack dev
server is already running, eliminating confusing warnings on every page load.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent cbee429 commit 6858a5a
File tree
1 file changed
+5
-1
lines changed- lib/generators/react_on_rails/templates/base/base/config
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
75 | | - | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| |||
0 commit comments