Skip to content

Commit

Permalink
chore(dep): replace gulp-minify-html with gulp-htmlmin for html minif…
Browse files Browse the repository at this point in the history
…ication

gulp-minify-html has been deprecated in favor of gulp-htmlmin.
  • Loading branch information
jyounce committed Feb 1, 2016
1 parent 9ec05e9 commit 2002c42
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion config/config-minify.coffee
Expand Up @@ -33,7 +33,12 @@ module.exports = (config, options) ->
views: getOption 'html', 'views'
templateCache: getOption 'html', 'templateCache'
options: # not configurable
conditionals:true, empty:true, ssi:true
collapseWhitespace: true
removeComments: true # excludes ie conditionals
removeEmptyElements: false
removeEmptyAttributes: false
ignoreCustomFragments: [/<!--\s*?#\s*?include.*?-->/ig] # exclude custom html spa placeholder comments

spa:
file: getOption 'spa', 'file'

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -49,10 +49,10 @@
"gulp-coffee": "2.3.1",
"gulp-concat": "2.6.0",
"gulp-cssnano": "2.1.0",
"gulp-htmlmin": "1.3.0",
"gulp-if": "2.0.0",
"gulp-jsonminify": "1.0.0",
"gulp-less": "3.0.5",
"gulp-minify-html": "1.0.4",
"gulp-nodemon": "2.0.6",
"gulp-plumber": "1.0.1",
"gulp-rename": "1.2.2",
Expand Down
2 changes: 1 addition & 1 deletion tasks/minify/minify-html.coffee
@@ -1,7 +1,7 @@
module.exports = (config, gulp) ->
q = require 'q'
path = require 'path'
minifyHtml = require 'gulp-minify-html'
minifyHtml = require 'gulp-htmlmin'
promiseHelp = require "#{config.req.helpers}/promise"

minifyTask = (appOrRb) ->
Expand Down
2 changes: 1 addition & 1 deletion tasks/minify/minify-spa.coffee
@@ -1,6 +1,6 @@
module.exports = (config, gulp) ->
q = require 'q'
minifyHtml = require 'gulp-minify-html'
minifyHtml = require 'gulp-htmlmin'
promiseHelp = require "#{config.req.helpers}/promise"

# tasks
Expand Down
2 changes: 1 addition & 1 deletion tasks/minify/template-cache.coffee
Expand Up @@ -3,7 +3,7 @@ module.exports = (config, gulp, taskOpts={}) ->
path = require 'path'
es = require 'event-stream'
gulpif = require 'gulp-if'
minifyHtml = require 'gulp-minify-html'
minifyHtml = require 'gulp-htmlmin'
templateCache = require 'gulp-angular-templatecache'
ngFormify = require "#{config.req.plugins}/gulp-ng-formify"
dirHelper = require("#{config.req.helpers}/dir") config, gulp
Expand Down

0 comments on commit 2002c42

Please sign in to comment.