Open
Description
Feature Request
Description
Be able to state which config file to use through the command line. This would be useful when having a dev config and production config, then the build scripts can decide which file to use. Similar concept to configuring dev and prod builds with webpack, rollup, angular, etc. If there's no --config
or -c
flag then fallback to the original path of finding the config file.
Similar Concepts
- https://webpack.js.org/guides/production/
- https://rollupjs.org/guide/en/#using-config-files
- https://angular.io/guide/build
Alternatives
How Capacitor config actually works is pretty unique in how it copies the built config files to the native builds. That process may offer a better way to do this.
Additional Context
During development, I'd like to set the dev server's localhost path within server.url
, but do not need that config for production.