Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add minified css #154

Merged
merged 1 commit into from
Apr 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}