Closed JacquesLeRoux closed 2 years ago
Forgot to say that npm exec uglifyjs test.js
, in dir where uglifyjs is, works
If you want to use the rules-based automatic task creation it'd be npm_run_uglify
(since the normal syntax is npm run uglify
) but if this is something that's going to be part of your build I recommend creating a NpmTask for it (and possibly registering inputs/outputs and marking it as cacheable)
Thanks, I'll try that
Hi,
I have added
"uglify-js": "latest"
in package.json and also addedBut I'm unsure how to run the
"uglify"
"script". Among others, I triedgradlew npm_run
and got this result:How (syntax) can I run the
uglify
"script"? I have tried many other ways, did not find the right one :/Thanks in advance