Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Commit

Permalink
🔥 fix gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
Irfan Maulana committed Dec 4, 2017
1 parent 99679a7 commit fe43fe9
Show file tree
Hide file tree
Showing 12 changed files with 185 additions and 1,425 deletions.
9 changes: 7 additions & 2 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ gulp.task('uglify-js', ['clean'], function(cb) {
pump([
gulp.src('./src/*.js'),
uglify(),
gzip(),
gulp.dest(output)
], cb);

Expand All @@ -93,11 +92,17 @@ gulp.task('rename', ['sass', 'uglify-js'], function() {
gulp.task('minify-css', ['rename'], function() {
return gulp.src('./dist/*.min.css')
.pipe(cleanCSS({ compatibility: 'ie8' }))
.pipe(gulp.dest(output));
});


gulp.task('gzip', ['rename'], function() {
return gulp.src(["./dist/*.min.css", "./dist/*.min.js"])
.pipe(gzip())
.pipe(gulp.dest(output));
});


gulp.task('build:prod', ['clean', 'sass', 'uglify-js', 'rename', 'minify-css']);
gulp.task('build:prod', ['clean', 'sass', 'uglify-js', 'rename', 'minify-css', 'gzip']);
gulp.task('build:dev', ['clean', 'sass', 'serve']);
gulp.task('default', ['build:dev']);
2 changes: 1 addition & 1 deletion dist/bem-kit.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* bem-kit v0.0.7
* bem-kit v0.0.8
* @author : Irfan Maulana
* https://github.com/mazipan/bem-kit
*/
Expand Down
1 change: 1 addition & 0 deletions dist/bem-kit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fe43fe9

Please sign in to comment.