From 3a60b904afb32249237981213a59286fd5be1341 Mon Sep 17 00:00:00 2001 From: rodrigograca31 Date: Thu, 7 Nov 2019 23:39:06 +0000 Subject: [PATCH 1/2] Move to html-minifier-terser to support ES6 --- .github/issue_template.md | 2 +- .verb.md | 4 ++-- README.md | 4 ++-- index.js | 2 +- package.json | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/issue_template.md b/.github/issue_template.md index 840be2e..5d66878 100644 --- a/.github/issue_template.md +++ b/.github/issue_template.md @@ -1 +1 @@ - + diff --git a/.verb.md b/.verb.md index c845898..df79257 100644 --- a/.verb.md +++ b/.verb.md @@ -1,10 +1,10 @@ ## Heads up! -_**Please do not report issues related to HTML parsing and output on this repository. Report those issues to the [html-minifier](https://github.com/kangax/html-minifier/issues) issue tracker.**_ +_**Please do not report issues related to HTML parsing and output on this repository. Report those issues to the [html-minifier-terser](https://github.com/DanielRuf/html-minifier-terser/issues) issue tracker.**_ ## Usage -See the [html-minifer docs](https://github.com/kangax/html-minifier) for all available options. +See the [html-minifier-terser docs](https://github.com/DanielRuf/html-minifier-terser) for all available options. ```js const gulp = require('gulp'); diff --git a/README.md b/README.md index 6a25851..f4ed9e1 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,11 @@ $ npm install --save gulp-htmlmin ## Heads up! -_**Please do not report issues related to HTML parsing and output on this repository. Report those issues to the [html-minifier](https://github.com/kangax/html-minifier/issues) issue tracker.**_ +_**Please do not report issues related to HTML parsing and output on this repository. Report those issues to the [html-minifier-terser](https://github.com/DanielRuf/html-minifier-terser/issues) issue tracker.**_ ## Usage -See the [html-minifer docs](https://github.com/kangax/html-minifier) for all available options. +See the [html-minifier-terser docs](https://github.com/DanielRuf/html-minifier-terser) for all available options. ```js const gulp = require('gulp'); diff --git a/index.js b/index.js index eedad38..26e6d17 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ 'use strict'; const PluginError = require('plugin-error'); -const htmlmin = require('html-minifier'); +const htmlmin = require('html-minifier-terser'); const through = require('through2'); module.exports = options => { diff --git a/package.json b/package.json index 83d4fc2..52a3cce 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "test": "mocha" }, "dependencies": { - "html-minifier": "^3.5.20", + "html-minifier-terser": "^5.0.0", "plugin-error": "^1.0.1", "through2": "^2.0.3" }, From 9e82fa24ba9b6031718f70f74c241cce74f3d71d Mon Sep 17 00:00:00 2001 From: rodrigograca31 Date: Fri, 8 Nov 2019 15:31:16 +0000 Subject: [PATCH 2/2] Fix Travis build system --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 82e0879..d3026b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,8 +10,6 @@ node_js: - '8' - '7' - '6' - - '5' - - '4' git: depth: 1 branches: