urbit / bridge

An application for interacting with Azimuth.
MIT License
98 stars 25 forks source link

Build script/argument for non-minimized production build #378

Open Fang- opened 4 years ago

Fang- commented 4 years ago

Sometimes we want to run non-minimized builds in production to help debug inconsistent issues. Webpack config as such: config.optimization.minimize = false;.

react-app-rewired allows us to do webpack config modification in config-overrides.js, but the only argument we can pass in from the package.json scripts is env. We could do npm run build --env=production-without-minimize but that'd mess with our env-specific build logic within the codebase too.

We should find a way to pass in arguments, or even just have a separate script, for building production without minimization.

liam-fitzgerald commented 4 years ago

could always deploy production with source maps, as an alternative

Fang- commented 4 years ago

I think we already do? But from my experience that doesn't always result in legible/usable stack traces...