Commit 38b20f91 authored by Alexander Dubovskoy's avatar Alexander Dubovskoy

Update gulpfile.js

parent 801349ae
......@@ -9,12 +9,15 @@ const sourcemaps = require('gulp-sourcemaps');
const sassGlob = require('gulp-sass-glob');
const plumber = require('gulp-plumber');
const lost = require('lost');
const run = require('gulp-run-command').default;
const paths = {
styles: {
// By using styles/**/*.sass we're telling gulp to check all folders for any sass file
src: "scss/**/*.scss",
// Compiled files will end up in whichever folder it's found in (partials are not compiled)
dest: "css"
dest: "css",
//twig files
twig: "templates/**/*.twig",
}
}
......@@ -40,6 +43,9 @@ 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'));
}
......
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