A way of using custom command line parameters in builds?


#1

Hi all,

is there a way to pass command line parameters to ionic serve or ionic build?
In my case I have the following setup:

  • In package.json I have the following script
    "build": ionic build

and i want to pass in parameters that I can use in my custom rollup config for example.
Example for planned usage from command line:

npm run build --stage=prod

Any help would be greatly appreciated!