Reputation: 157
I am setting up Build process with NPM Scripts and my Issue/question is with the build process, I've followed the instructor's directions perfectly but when I run 'npm build:css'
Error message:
ERROR: Task not found: "prefix.css", compress.css" npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build:css:
npm-run-all compile:sass concat:css prefix.css compress.css
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build:css script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above
Package.json:
{
"name": "Project",
"version": "1.0.0",
"description": "Landing page for Project",
"main": "index.js",
"scripts": {
"watch:sass": "node-sass sass/main.scss css/style.css -w",
"compile:sass": "node-sass sass/main.scss css/style.comp.css",
"concat:css": "concat -o css/style.concat.css css/icon-font.css css/style.comp.css",
"prefix:css": "postcss --use autoprefixer -b 'last 10 versions' css/style.concat.css -o css/style.prefix.css",
"compress:css": "node-sass css/style.prefix.css css/style.css --output-style compressed",
"build:css": "npm-run-all compile:sass concat:css prefix.css compress.css"
},
"author": "D",
"license": "ISC",
"devDependencies": {
"autoprefixer": "^9.6.5",
"concat": "^1.0.3",
"node-sass": "^4.12.0",
"npm-run-all": "^4.1.5",
"postcss-cli": "^6.1.3"
}
}
Upvotes: 1
Views: 698
Reputation: 17624
I've followed the instructor's directions perfectly
Did you?
"build:css": "npm-run-all compile:sass concat:css prefix.css compress.css"
should be:
"build:css": "npm-run-all compile:sass concat:css prefix:css compress:css"
The error is self explanatory.
Upvotes: 1