Skip to content

feat: set config file through command line, with --config #4182

Open
@adamdbradley

Description

@adamdbradley

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions