Answer the question
In order to leave comments, you need to log in
When converting in the console, the following error occurs PS D:\programming\GULP-start> gulp styles [11:48:46] Using gulpfile D:\programming\GULP-?
gulpfile.js:
const { src, dest } = require('gulp');
const scss = require('gulp-sass');
function styles() {
return src('app/scss/style.scss')
.pipe(scss())
.pipe(dest('app/css'))
}
exports.styles = styles;
main.scss:
.testr{
text-align: center;
&__box{
margin: 0;
}
}
{
"name": "gulp-start",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"gulp": "^4.0.2",
"gulp-sass": "^4.1.0"
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question