Commit ef5c65eb authored by Nikolay Gromov's avatar Nikolay Gromov

Добавил слежение за JS

parent d12952f7
......@@ -278,6 +278,14 @@ gulp.task('serve', ['build'], function() {
})
});
}
// Слежение за JS
if(lists.js) {
gulp.watch(lists.js, function (event) {
gulpSequence('js', browserSync.reload())(function (err) {
if (err) console.log(err);
})
});
}
// Слежение за добавочными стилями
if(pjson.configProject.copiedCss.length) {
console.log(pjson.configProject.copiedCss);
......@@ -294,9 +302,7 @@ gulp.task('serve', ['build'], function() {
// });
// Задача по умолчанию
gulp.task('default',
gulpSequence(['serve'])
);
gulp.task('default', ['serve']);
......
......@@ -14,6 +14,8 @@
<p><img src="img/joker.jpg" alt="" width="824" height="460"></p>
<input type="text" value ="qwerty">
@@include('_include/page_bottom.html')
</body>
</html>
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