Guest User

Untitled

a guest
Feb 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. gulp.task("css:build", function () {
  2. return gulp.src(path.src.css)
  3. .pipe(plumber())
  4. .pipe(sass())
  5. .pipe(autoprefixer({
  6. browsers: ["last 5 versions"],
  7. cascade: true
  8. }))
  9. .pipe(removeComments())
  10. .pipe(cssbeautify())
  11. .pipe(gulp.dest(path.build.css))
  12. .pipe(cssnano({
  13. zindex: false,
  14. discardComments: {
  15. removeAll: true
  16. }
  17. }))
  18. .pipe(rename("style.min.css"))
  19. .pipe(gulp.dest(path.build.css))
  20. .pipe(webserver.reload({stream: true}));
  21. });
Add Comment
Please, Sign In to add comment