Skip to content

Commit

Permalink
solving minifying css problem in gulp file.js
Browse files Browse the repository at this point in the history
  • Loading branch information
holger1411 committed May 2, 2017
1 parent 212bee6 commit f5292b6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
11 changes: 9 additions & 2 deletions css/child-theme.min.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion css/child-theme.min.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions css/custom-editor-style.min.css

This file was deleted.

1 change: 0 additions & 1 deletion css/custom-editor-style.min.css.map

This file was deleted.

4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ gulp.task('watch-scss', ['browser-sync'], function () {
// Run:
// gulp sass
// Compiles SCSS files in CSS
gulp.task('sass', function () {
gulp.task('sass',['minify-css'], function () {
var stream = gulp.src('./sass/*.scss')
.pipe(plumber({ errorHandler: function (error) { swallowError(this, error); } }))
.pipe(sass())
Expand Down Expand Up @@ -131,7 +131,7 @@ gulp.task('cssnano', ['cleancss'], function(){
});

gulp.task('minify-css', function() {
return gulp.src('./css/theme.css')
return gulp.src('./css/child-theme.css')
.pipe(cleanCSS({compatibility: 'ie8'}))
.pipe(plumber())
.pipe(rename({suffix: '.min'}))
Expand Down

0 comments on commit f5292b6

Please sign in to comment.