Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- npm-only way:
- run:
- npm install uglifyjs-folder --save-dev
- and afterwards add to your package.json something like:
- "uglifyjs": "uglifyjs-folder js -eo jsm"
- then run:
- npm run uglifyjs
- Please note, if you'd need to generate to the same folder as the source files are (js), following should do the job:
- run:
- npm install del-cli uglifyjs-folder --save-dev
- and afterwards add to your package.json something like:
- "uglifyjs": "del js/*.min.js; uglifyjs-folder js -eo js"
- then run:
- npm run uglifyjs
Advertisement
Add Comment
Please, Sign In to add comment