Can anyone assist me with executing a series of commands in npm
scripts during the creation of a js
application?
Currently, I am using the following command:
"scripts": {
"build-js": "browserify src/app/main.js --debug | exorcist dist/app.js.map > dist/app.js",
}
This command browserifies the code and extracts sourcemaps. However, I also want to minify it using uglifyjs2
.
Does anyone know how I can incorporate uglifyjs to obtain a minified source file with external sourcemaps?