Skip to content

Commit

Permalink
Close googleGH-47: Adds support for UnCSS..
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani authored and sindresorhus committed Jun 10, 2014
1 parent 938eeda commit 31e47c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ gulp.task('html', ['styles'], function () {
.pipe($.useref.assets())
.pipe($.if('*.js', $.uglify()))
.pipe($.if('*.css', $.csso()))
.pipe($.if('*.css', $.uncss({ html: ['app/index.html'] })))
.pipe($.useref.restore())
.pipe($.useref())
.pipe(gulp.dest('dist'))
Expand Down Expand Up @@ -88,7 +89,7 @@ gulp.task('serve', ['styles'], function () {
});

gulp.task('watch', ['serve'], function () {
gulp.watch(['app/*.html'], reload);
gulp.watch(['app/**/*.html'], reload);
gulp.watch(['app/styles/**/*.{css,scss}'], ['styles']);
gulp.watch(['app/scripts/**/*.js'], ['jshint']);
gulp.watch(['app/images/**/*'], ['images']);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"gulp-size": "^0.4.0",
"gulp-uglify": "^0.3.0",
"gulp-useref": "^0.4.3",
"gulp-uncss": "^0.4.4",
"jshint-stylish": "^0.2.0",
"opn": "^0.1.1",
"psi": "0.0.3",
Expand Down

0 comments on commit 31e47c3

Please sign in to comment.