node.js - Auto compilation of bootstrap less file with gulp/gulp-watch-less does'nt regenerate the css -


i've installed nodejs , gulp auto compile bootstrap less file (v 3.3.5) gulp-watch-less module.

everything working fine expect 1 thing: have stop , start gulp regenerate bootstrap.css.

for information, gulp detecting .less file included in bootstrap.less modified, have following message:

[23:14:40] starting 'default'... [23:14:42] finished 'default' after 2.04 s [23:16:42] less saw variable-overrides.less changed [23:16:42] less saw variable-overrides.less changed [23:16:42] less saw bootstrap.less changed:by:import [23:16:42] less saw bootstrap.less changed:by:import 

but when open bootstrap.css file don’t see changes until stop , start gulp again.

here content of gulpfile.js:

var gulp = require('gulp'); var watchless = require('gulp-watch-less'); var less = require('gulp-less');  gulp.task('default', function () {     return gulp.src('./../../../../drupal8/sandbox/felicity/themes/octogone/less/bootstrap.less')         .pipe(watchless('./../../../../drupal8/sandbox/felicity/themes/octogone/less/bootstrap.less'))         .pipe(less())         .pipe(gulp.dest('./../../../../drupal8/sandbox/felicity/themes/octogone/css')); }); 

this code gulp-watch-less page

can 1 explain me why bootstrap.css not auto-re-generated?

i've solved problem using gulp-watch-less2

gulp-watch-less wasn't compatible gulp 3.9


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -