fixing duplicate pipe in gulpfile.js

This commit is contained in:
Holger Könemann 2017-03-08 13:13:16 +01:00
parent 195102c0cf
commit aed0e6440d
1 changed files with 2 additions and 3 deletions

View File

@ -44,7 +44,7 @@ var del = require('del');
// Run:
// gulp sass + cssnano + rename
// Prepare the min.css for production (with 2 pipes to be sure that "child-theme.css" == "child-theme.min.css")
// Prepare the min.css for production (with 2 pipes to be sure that "theme.css" == "theme.min.css")
gulp.task('scss-for-prod', function() {
var source = gulp.src('./sass/*.scss')
.pipe(plumber())
@ -55,7 +55,7 @@ gulp.task('scss-for-prod', function() {
.pipe(sourcemaps.write(undefined, { sourceRoot: null }))
.pipe(gulp.dest('./css'))
.pipe(rename('custom-editor-style.css'))
.pipe(gulp.dest('./css'));
var pipe2 = source.pipe(clone())
.pipe(cssnano())
@ -92,7 +92,6 @@ gulp.task('sass', function () {
.pipe(sass())
.pipe(gulp.dest('./css'))
.pipe(rename('custom-editor-style.css'))
.pipe(gulp.dest('./css'));
return stream;
});