Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.watch([path.join(global.paths.build, '**', '*.{html,js,json,css}')]).on('change', function ( file ) {
// report
log('watch '.bgCyan.black, 'reload ' + ('./' + path.relative(global.paths.build, file.path)).bold);
// reload
glr.changed(file);
});
}
]).on('change', function(file){
//console.log(file.path + ' changed')
livereload.changed(file)
});
this.stdout.on('data', function (chunk) {
if(/^Express server listening on port/.test(chunk)){
livereload.changed(__dirname);
}
});
this.stdout.pipe(process.stdout);
this.stdout.on("data", function(chunk) {
if (/^Express server listening on port/.test(chunk)) {
livereload.changed(__dirname);
}
});
this.stdout.pipe(process.stdout);
this.stdout.on('data', function(chunk) {
if (/^Earth WebGL Demo listening on port/.test(chunk)) {
livereload.changed(__dirname);
}
});
this.stdout.pipe(process.stdout);
watcher.on('change', function (e) {
livereload.changed(e.path)
growl(path.basename(e.path))
})
})
watch(source + pattern, (event) => {
livereload.changed(event.path)
performCopy()
})
}
watch(pattern, async (event) => {
const stream = buildScss()
await endOfStream(stream)
livereload.changed(event.path)
})
return buildScssWithSourceMaps()
]).on('change', function(event) {
livereload.changed( event.path );
});
gulp.watch(files,['default']).on('change', function(file) {
livereload.changed(file.path);
gutil.log(gutil.colors.yellow('JS changed' + ' (' + file.path + ')'));
});
});