Skip to content

Commit

Permalink
Replace deprecated minifier plugins
Browse files Browse the repository at this point in the history
Fixes #435.
  • Loading branch information
silvenon committed Jan 1, 2016
1 parent 3f10c1d commit e2d325a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"gulp": "^3.9.0",
"gulp-autoprefixer": "^3.0.1",
"gulp-cache": "^0.2.8",
"gulp-cssnano": "^2.0.0",
"gulp-eslint": "^0.13.2",
"gulp-htmlmin": "^1.3.0",
"gulp-if": "^1.2.5",
"gulp-imagemin": "^2.2.1",
"gulp-load-plugins": "^0.10.0",
"gulp-minify-css": "^1.2.1",
"gulp-minify-html": "^1.0.0",<% if (includeSass) { %>
"gulp-load-plugins": "^0.10.0",<% if (includeSass) { %>
"gulp-plumber": "^1.0.1",
"gulp-sass": "^2.0.0",<% } %>
"gulp-size": "^1.2.1",
Expand Down
4 changes: 2 additions & 2 deletions app/templates/gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ gulp.task('html', ['styles'], () => {
return gulp.src('app/*.html')
.pipe($.useref({searchPath: ['.tmp', 'app', '.']}))
.pipe($.if('*.js', $.uglify()))
.pipe($.if('*.css', $.minifyCss({compatibility: '*'})))
.pipe($.if('*.html', $.minifyHtml({conditionals: true, loose: true})))
.pipe($.if('*.css', $.cssnano()))
.pipe($.if('*.html', $.htmlmin()))
.pipe(gulp.dest('dist'));
});

Expand Down

0 comments on commit e2d325a

Please sign in to comment.