Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. "use strict";
  2.  
  3. var gulp = require("gulp"),
  4. ...
  5. sass = require("gulp-sass"), // Add
  6. bundleconfig = require("./bundleconfig.json"); // make sure bundleconfig.json doesn't contain any comments
  7.  
  8. ...
  9.  
  10. // Add
  11. gulp.task('sass', function () {
  12. gulp.src("./wwwroot/css/**/*.scss")
  13. .pipe(sass().on('error', sass.logError))
  14. .pipe(gulp.dest("./wwwroot/css"));
  15. });
  16.  
  17. gulp.task("watch", function () {
  18.  
  19. gulp.watch("./wwwroot/css/**/*.scss", ["sass"]); // Add
  20.  
  21. getBundles(".js").forEach(function (bundle) {
  22. gulp.watch(bundle.inputFiles, ["min:js"]);
  23. });
  24. ...
  25.  
  26. });
  27.  
  28. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement