and again
This commit is contained in:
parent
4e2072a267
commit
3e1838671b
|
@ -44,9 +44,8 @@ gulp.task( 'scss-for-prod', function() {
|
||||||
.pipe( gulp.dest( paths.css ) )
|
.pipe( gulp.dest( paths.css ) )
|
||||||
.pipe( rename( 'custom-editor-style.css' ) );
|
.pipe( rename( 'custom-editor-style.css' ) );
|
||||||
|
|
||||||
|
|
||||||
var pipe2 = source.pipe( clone() )
|
var pipe2 = source.pipe( clone() )
|
||||||
.pipe(minify-css())
|
.pipe( minifycss() )
|
||||||
.pipe( rename( {suffix: '.min'} ) )
|
.pipe( rename( {suffix: '.min'} ) )
|
||||||
.pipe( gulp.dest( paths.css ) );
|
.pipe( gulp.dest( paths.css ) );
|
||||||
return merge( pipe1, pipe2 );
|
return merge( pipe1, pipe2 );
|
||||||
|
@ -141,7 +140,7 @@ gulp.task( 'cssnano', function(){
|
||||||
.pipe( gulp.dest( paths.css ) );
|
.pipe( gulp.dest( paths.css ) );
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task( 'minify-css', function() {
|
gulp.task( 'minifycss', function() {
|
||||||
return gulp.src( paths.css + '/theme.css' )
|
return gulp.src( paths.css + '/theme.css' )
|
||||||
.pipe( sourcemaps.init( {loadMaps: true} ) )
|
.pipe( sourcemaps.init( {loadMaps: true} ) )
|
||||||
.pipe( cleanCSS( {compatibility: '*'} ) )
|
.pipe( cleanCSS( {compatibility: '*'} ) )
|
||||||
|
@ -162,7 +161,7 @@ gulp.task( 'cleancss', function() {
|
||||||
.pipe( rimraf() );
|
.pipe( rimraf() );
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task( 'styles', function( callback ){ gulpSequence( 'sass', 'minify-css' )( callback ); });
|
gulp.task( 'styles', function( callback ){ gulpSequence( 'sass', 'minifycss' )( callback ); });
|
||||||
|
|
||||||
|
|
||||||
// Run:
|
// Run:
|
||||||
|
|
Reference in New Issue