Skip to content

Commit

Permalink
#156 Use recent and more efficient CSS minifyer gulp task
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed May 28, 2019
1 parent a188398 commit 7b4a805
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 444 deletions.
4 changes: 2 additions & 2 deletions assets/css/vendor/bootstrap-iso.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assets/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const concat = require('gulp-concat');
const uglify = require('gulp-uglify');
const imagemin = require('gulp-imagemin');
const less = require('gulp-less');
const cssmin = require('gulp-cssmin')
const cleanCSS = require('gulp-clean-css');
const replace = require('gulp-replace');
const webp = require('gulp-webp');

Expand Down Expand Up @@ -43,13 +43,13 @@ gulp.task('webp', () =>

gulp.task('css', function minicss() {
return gulp.src('css/vendor/bootstrap-iso.css')
.pipe(cssmin())
.pipe(cleanCSS())
.on('error', (err) => {
console.log(err.toString());
})
.pipe(concat('bootstrap-iso.min.css'))
.pipe(gulp.dest('css/vendor/'));
})
});

gulp.task("isolate-bootstrap-css", gulp.series('css', function isolating() {
return gulp.src('css/bootstrap-iso.less')
Expand Down
Loading

0 comments on commit 7b4a805

Please sign in to comment.