Monday, October 23, 2017

Send extra arguments to npm script in package.json

In our package.json we defined some script commands to automate certain actions.

However sometimes we want to add extra parameters to the script when executing it. This is possible by adding an extra pair of dashes  and the extra parameter when executing the command:

ngbuild -- --environment=local

No comments: