0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-22 14:39:45 -05:00

Touch component on style change

This commit is contained in:
alonso.torres 2023-11-03 16:00:51 +01:00 committed by Andrés Moya
parent da4ba3c9fe
commit d0fa58c66c

View file

@ -280,7 +280,12 @@ gulp.task("dev:dirs", async function(next) {
});
gulp.task("watch:main", function() {
gulp.watch("src/**/**.scss", gulp.series("scss"));
gulp.watch("src/**/**.scss", gulp.series("scss"))
.on("change", function(path) {
// Replace ".scss" for ".cljs" to refresh the file
gulp.src(path.replace(".scss", ".cljs"))
.pipe(touch());
});
gulp.watch(paths.resources + "styles/**/**.scss", gulp.series("scss"));
gulp.watch(paths.resources + "images/**/*", gulp.series("copy:assets:images"));