Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gulp.task("css:build", function () {
- return gulp.src(path.src.css)
- .pipe(plumber())
- .pipe(sass())
- .pipe(autoprefixer({
- browsers: ["last 5 versions"],
- cascade: true
- }))
- .pipe(removeComments())
- .pipe(cssbeautify())
- .pipe(gulp.dest(path.build.css))
- .pipe(cssnano({
- zindex: false,
- discardComments: {
- removeAll: true
- }
- }))
- .pipe(rename("style.min.css"))
- .pipe(gulp.dest(path.build.css))
- .pipe(webserver.reload({stream: true}));
- });
Add Comment
Please, Sign In to add comment