node.js - gulp Task is not in your gulpfile -
new node.js, trying use gulp. got error:
task 'styles' not in gulpfile
i see common error, can cause it? code.
both auto-prefixer , gulp in package.json
file
the file name autoprefixer.js
var gulp = require('gulp'); var autoprefixer = require('gulp-autoprefixer'); gulp.task('styles',function(){ return gulp.src('css/style.css') .pipe(autoprefixer()) .pipe(gulp.dest('build')) });
what can problem?
i found out problem... file name autoprefixer.js
, not gulpfile.js
should be. once changed file name worked great.
Comments
Post a Comment