Commit 4f3b84c5 authored by Nikolay Gromov's avatar Nikolay Gromov

Поправил слежение за HTML (следит за новыми без перезапуска)

parent 56fd534b
......@@ -345,11 +345,16 @@ gulp.task('serve', ['build'], function() {
// Слежение за шрифтами
gulp.watch('/fonts/*.{ttf,woff,woff2,eot,svg}', {cwd: dirs.srcPath}, ['watch:fonts']);
// Слежение за html
// gulp.watch([
// dirs.srcPath + '/*.html',
// dirs.srcPath + '/_include/*.html',
// dirs.srcPath + dirs.blocksDirName + '/**/*.html',
// ], ['watch:html']);
gulp.watch([
dirs.srcPath + '/*.html',
dirs.srcPath + '/_include/*.html',
dirs.srcPath + dirs.blocksDirName + '/**/*.html',
], ['watch:html']);
'*.html',
'_include/*.html',
dirs.blocksDirName + '/**/*.html'
], {cwd: dirs.srcPath}, ['watch:html']);
// Слежение за JS
if(lists.js.length) {
gulp.watch(lists.js, ['watch:js']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment