Skip to content

Commit

Permalink
Fix gulp-if bug with passing wrong files through
Browse files Browse the repository at this point in the history
Fixes #619.
  • Loading branch information
silvenon authored Jan 30, 2017
1 parent ed72799 commit 0ee21ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/templates/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ gulp.task('html', ['styles'], () => {
<% } -%>
return gulp.src('app/*.html')
.pipe($.useref({searchPath: ['.tmp', 'app', '.']}))
.pipe($.if('*.js', $.uglify({compress: {drop_console: true}})))
.pipe($.if('*.css', $.cssnano({safe: true, autoprefixer: false})))
.pipe($.if('*.html', $.htmlmin({
.pipe($.if('/\.js$/', $.uglify({compress: {drop_console: true}})))
.pipe($.if('/\.css$/b', $.cssnano({safe: true, autoprefixer: false})))
.pipe($.if('/\.html$/', $.htmlmin({
collapseWhitespace: true,
minifyCSS: true,
minifyJS: {compress: {drop_console: true}},
Expand Down

0 comments on commit 0ee21ef

Please sign in to comment.