Skip to content

Commit

Permalink
Merge pull request #154 from YuriBrunetto/min-css
Browse files Browse the repository at this point in the history
add minified css
  • Loading branch information
kylefox committed Apr 30, 2016
2 parents 7279b21 + 4f43415 commit 8a45590
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var gulp = require('gulp');
var uglify = require("gulp-uglify");
var uglifycss = require("gulp-uglifycss");
var rename = require('gulp-rename');
var changelog = require('gulp-conventional-changelog');

Expand All @@ -10,6 +11,13 @@ gulp.task('min', function() {
.pipe(gulp.dest('.'));
});

gulp.task('css', function() {
gulp.src('jquery.modal.css')
.pipe(uglifycss())
.pipe(rename('jquery.modal.min.css'))
.pipe(gulp.dest('.'));
});

gulp.task('changelog', function() {
gulp.src('CHANGELOG.md')
.pipe(changelog())
Expand Down
1 change: 1 addition & 0 deletions jquery.modal.min.css

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"gulp": "^3.9.0",
"gulp-conventional-changelog": "^0.7.0",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.4.1"
"gulp-uglify": "^1.4.1",
"gulp-uglifycss": "^1.0.6"
}
}

0 comments on commit 8a45590

Please sign in to comment.