M
M
meof2017-01-21 21:16:22
JavaScript
meof, 2017-01-21 21:16:22

How to make a task in gulp automatically run when the project file changes?

I want that when saving changes in the less file, css is automatically collected from it, so as not to write the launch of this action in the console. How to do?
I'm not a programmer, I can't read the documentation, I learned German, don't kick me hard.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WQP, 2017-01-21
@WQP

It will suit you

gulp.task('watch', function () {
  gulp.watch('assets/less/**/*.less', ['go']);
});

E
Eugene, 2017-01-23
@deworkers

I studied from this article there about what you need and some more useful TYTS
Plus there are automatic compilers for code editors. Those. css is compiled in the folder with the Less file. For example for sublime text - Less2Css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question