我正在使用节点v12.18.3,gulp v4.0.2和gulp-watch v5.0.1 这是我的代码
var gulp = require('gulp'),
watch = require('gulp-watch'),
postCss = require('gulp-postcss'),
autoPrefix = require('autoprefixer'),
cssVars = require('postcss-simple-vars'),
nested = require('postcss-nested'),
importCss = require('postcss-import');
gulp.task('cssWork', function() {
return gulp.src('Css/again/maCssII.css')
.pipe(postCss([importCss, cssVars, nested, autoPrefix]))
.pipe(gulp.dest('Css/styles'));
});
gulp.task('watch', function() {
watch('Css/again/maCssII.css', function() {
gulp.start('cssWork');
});
});
git无法监视我的文件,并且总是提到类似start的功能, 有人可以帮我解决这个问题吗?