Task never defined: scss - did you mean? sass,任务没有定义???
本地代码:
const gulp = require('gulp');
const sass = require('gulp-sass')
const minifyCSS = require('gulp-minify-css');
gulp.task('sass', async function()
return gulp.src('components/css/**/*.scss')
.pipe(sass())
.pipe(minifyCSS())
.pipe(gulp.dest('dist/css'))
})
根据错误提示:
应该是你package.json中script的脚本配置错了,你定义的任务名称为sass,脚本配置的是scss。