Commit 80b0165c authored by Alexander Dubovskoy's avatar Alexander Dubovskoy

Update gulpfile.js / именованная функция для twig

parent c3d17a47
......@@ -40,15 +40,20 @@ function scss() {
.pipe(livereload());
};
function twig() {
return run('drush cr');
}
function watchFiles() {
livereload.listen();
scss();
gulp.watch(paths.styles.src, gulp.series('scss'));
// Clear cache if something inside .twig || .theme was changed
gulp.watch([paths.styles.twig, "*.theme"], run('drush cr'));
gulp.watch([paths.styles.twig, "*.theme"], gulp.series('twig'));
}
exports.scss = scss;
exports.watch = exports.default = watchFiles;
exports.twig = twig;
exports.watch = exports.default = watchFiles;
\ No newline at end of file
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