Commit ef5c65eb authored by Nikolay Gromov's avatar Nikolay Gromov

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

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