You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assume in my package.json I have a task named "xxx".
Using npm itself, I can run it as follows: npm run xxx.
I also can run it with additional arguments in the following way: npm run xxx -- more arguments for xxx.
When I run this task using node plugin for Gradle, I can run it using ./gradlew npm_run_xxx.
But is there a way to pass those additional arguments to the npm task, like I've done above with npm right on the Gradle command line?
The text was updated successfully, but these errors were encountered:
IvanPizhenko
changed the title
Question: How to pass additional arguments to node task via gradle command line?
Question: How to pass additional arguments to npm task via Gradle command line?
Feb 21, 2023
Assume in my
package.json
I have a task named "xxx".Using
npm
itself, I can run it as follows:npm run xxx
.I also can run it with additional arguments in the following way:
npm run xxx -- more arguments for xxx
.When I run this task using node plugin for Gradle, I can run it using
./gradlew npm_run_xxx
.But is there a way to pass those additional arguments to the npm task, like I've done above with
npm
right on the Gradle command line?The text was updated successfully, but these errors were encountered: