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

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -