Commit f6d95d16 authored by Alexander Dubovskoy's avatar Alexander Dubovskoy

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

This reverts commit 80b0165c.
parent 80b0165c
......@@ -40,20 +40,15 @@ 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"], gulp.series('twig'));
gulp.watch([paths.styles.twig, "*.theme"], run('drush cr'));
}
exports.scss = scss;
exports.twig = twig;
exports.watch = exports.default = watchFiles;
\ No newline at end of file
exports.watch = exports.default = watchFiles;
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