Commit ce7cdd7
committed
webpacker:install does not require webpacker.yml
If you run ./bin/rails webpacker:install on a rails app with no
config/webpacker.yml, we get a crash with this error:
> Webpacker configuration file not found webpacker-v6/config/webpacker.yml.
> Please run rails webpacker:install Error: No such file or directory @
rb_check_realpath_internal - webpacker-v6/config/webpacker.yml
With this fix, allow installer to run.
Problem solved with a global to indicate installing so that default
configuration is used rather than crashing because the yet to be
installed config/webpacker.yml is not yet installed.1 parent 9d55518 commit ce7cdd7
2 files changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
0 commit comments