A
A
Alexander Gamov2015-04-13 10:47:50
gulp.js
Alexander Gamov, 2015-04-13 10:47:50

Why doesn't Gulp create files and see changes?

I installed the node and gulp on Win8, everything got up without any problems, but when I start the gulp itself, it writes to the console that everything is fine, all tasks have been completed, the watch is running. In fact, no new files have been created, and when files change, tasks are not launched.

gulp.task('css-dev', function() {
  gulp.src('dev/less/*.less') 	
  .pipe(sourcemaps.init()) 			
  .pipe(less()) 					
  .pipe(sourcemaps.write()) 		
  .pipe(autoprefix({				
   	browsers: ['last 4 versions', 'ie 8']		
    	}))
  .pipe(concat('style.css')) 		
  .pipe(gulp.dest('dev/css/'))	
  .pipe(connect.reload())			
});

An example of a task, everything worked fine on another machine.
Recipe from this question Why doesn't Gulp create files when running tasks on Windows 8? did not help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Gamov, 2015-04-13
@slowdream

Problem solved. The path must be specified without a slash at the beginning :)

D
Denis Karakchiev, 2017-02-10
@uokersam

I had a similar problem, but everything was correct. That is, absolutely everything.
M - magic: restarted the terminal, the file was created.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question