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:
parent
da4ba3c9fe
commit
d0fa58c66c
1 changed files with 6 additions and 1 deletions
|
@ -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"));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue