If no specific mode configuration option is provided, Webpacker falls back to production. This will also trigger uglification of the code which can in return yield unexpected results in testing (e.g. searching for components that have their names altered) and also increased build times.
I suggest that we change this option to fall back to development
Generally it is better if someone does something wrong with their config, that they get a good production build and slow dev rebuilds. Than a large and slow production app and fast dev rebuilds.
Easy enough for a developer to look into why its slow and figure out they don't have development mode set. (Especially as you said, because the code will look weird in devtools)
Generally it is better if someone does something wrong with their config, that they get a good production build and slow dev rebuilds.
That doesn鈥檛 make any sense. There is no library that runs production mode by default. Rails doesn鈥檛 do it and neither does webpack.
If it's ok for you feel free to close this isssue @kpelelis 馃憤
Most helpful comment
That doesn鈥檛 make any sense. There is no library that runs production mode by default. Rails doesn鈥檛 do it and neither does webpack.