Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: gulpfile.js

Issue 29529760: Issue 5480 - Add "watch" task to website-defaults gulpfile (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Created Aug. 28, 2017, 3:05 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gulpfile.js
===================================================================
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -21,9 +21,14 @@
gulp.task("scss", function ()
{
return gulp.src("./scss/main.scss")
.pipe(sass().on("error", sass.logError))
.pipe(gulp.dest("./static/css/"));
});
-gulp.task("default", ["scss"]);
+gulp.task("watch", function ()
+{
+ gulp.watch("./scss/**/*.scss", ["scss"]);
+});
+
+gulp.task("default", ["scss", "watch"]);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld