diff --git a/app/templates/gulpfile.js b/app/templates/gulpfile.js index 83817256..a72edbe1 100644 --- a/app/templates/gulpfile.js +++ b/app/templates/gulpfile.js @@ -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}},