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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -