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

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

parent 56fd534b
...@@ -345,11 +345,16 @@ gulp.task('serve', ['build'], function() { ...@@ -345,11 +345,16 @@ gulp.task('serve', ['build'], function() {
// Слежение за шрифтами // Слежение за шрифтами
gulp.watch('/fonts/*.{ttf,woff,woff2,eot,svg}', {cwd: dirs.srcPath}, ['watch:fonts']); gulp.watch('/fonts/*.{ttf,woff,woff2,eot,svg}', {cwd: dirs.srcPath}, ['watch:fonts']);
// Слежение за html // Слежение за html
// gulp.watch([
// dirs.srcPath + '/*.html',
// dirs.srcPath + '/_include/*.html',
// dirs.srcPath + dirs.blocksDirName + '/**/*.html',
// ], ['watch:html']);
gulp.watch([ gulp.watch([
dirs.srcPath + '/*.html', '*.html',
dirs.srcPath + '/_include/*.html', '_include/*.html',
dirs.srcPath + dirs.blocksDirName + '/**/*.html', dirs.blocksDirName + '/**/*.html'
], ['watch:html']); ], {cwd: dirs.srcPath}, ['watch:html']);
// Слежение за JS // Слежение за JS
if(lists.js.length) { if(lists.js.length) {
gulp.watch(lists.js, ['watch:js']); 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