Answer the question
In order to leave comments, you need to log in
How to create a folder on windows 7 (mkdir -p)?
I'm trying to execute a script with nmp
"scripts": {
...
"uglify": "mkdir -p dist/js && uglifyjs src/js/*.js -m -o dist/js/app.js"
}
Ошибка в синтаксисе команды.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] uglify: `mkdir -p dist/js && uglifyjs src/js/*.js -m -o dist/js/app.js`
npm ERR! Exit status 1
"uglify": "uglifyjs src/js/*.js -m -o dist/js/app.js"
Answer the question
In order to leave comments, you need to log in
You can create uglifyScript.sh file
#!/bin/bash
mkdir -p dist/js && uglifyjs src/js/*.js -m -o dist/js/app.js
"scripts": {
"uglify": "bash uglifyScript.sh"
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question