html-minifier.git
2 years agoChange from pnpm to npm, add ./link.sh shortcut for npm style package linking master
Nick Downing [Mon, 3 Jan 2022 03:59:04 +0000 (14:59 +1100)]
Change from pnpm to npm, add ./link.sh shortcut for npm style package linking

4 years agoGet rid of phantomjs-prebuilt dependency (needed for tests, don't want tests)
Nick Downing [Sun, 15 Mar 2020 01:31:43 +0000 (21:31 -0400)]
Get rid of phantomjs-prebuilt dependency (needed for tests, don't want tests)

4 years agoChange yarn to pnpm
Nick Downing [Mon, 3 Feb 2020 15:56:54 +0000 (02:56 +1100)]
Change yarn to pnpm

5 years agoChange to use @ndcode/clean-css not clean-css, and uglify-es not uglify-js
Nick Downing [Sun, 18 Nov 2018 12:35:50 +0000 (23:35 +1100)]
Change to use @ndcode/clean-css not clean-css, and uglify-es not uglify-js

5 years agoVersion 3.5.21
Mathias Bynens [Thu, 25 Oct 2018 15:01:17 +0000 (17:01 +0200)]
Version 3.5.21

5 years agoSupport <!doctypehtml> in the parser
Mathias Bynens [Wed, 24 Oct 2018 15:34:00 +0000 (17:34 +0200)]
Support <!doctypehtml> in the parser

5 years agoUpdate build
Mathias Bynens [Wed, 24 Oct 2018 08:17:23 +0000 (10:17 +0200)]
Update build

5 years agoMerge pull request #970 from mathiasbynens/doctype
Juriy Zaytsev [Tue, 23 Oct 2018 22:07:42 +0000 (18:07 -0400)]
Merge pull request #970 from mathiasbynens/doctype

Use <!doctypehtml> (without the space) where possible

5 years agoMerge pull request #965 from mathiasbynens/fix-ampersand
Juriy Zaytsev [Tue, 23 Oct 2018 22:06:54 +0000 (18:06 -0400)]
Merge pull request #965 from mathiasbynens/fix-ampersand

Prevent data loss when using `decodeEntities`

5 years agoUse <!doctypehtml> (without the space) where possible
Mathias Bynens [Fri, 5 Oct 2018 14:09:27 +0000 (16:09 +0200)]
Use <!doctypehtml> (without the space) where possible

When both the `useShortDoctype` and the `removeTagWhitespace` options are enabled, we can remove the space from the doctype altogether.

It’s invalid HTML (which is already expected in the output with the `removeTagWhitespace` option enabled), but it still triggers standards mode.

https://html.spec.whatwg.org/multipage/parsing.html#parse-error-missing-whitespace-before-doctype-name
https://twitter.com/mathias/status/1048098677703753729

Closes #969.

5 years agoPrevent data loss when using `decodeEntities`
Mathias Bynens [Sun, 23 Sep 2018 17:29:41 +0000 (13:29 -0400)]
Prevent data loss when using `decodeEntities`

Without this patch, the `decodeEntities` option decodes e.g. `&amp;` even in cases when doing so changes the meaning (and rendering) of the resulting HTML.

Fixes #964.

5 years agohandle `clean-css` errors correctly (#955)
Felipe Matos Santana [Thu, 23 Aug 2018 07:25:24 +0000 (04:25 -0300)]
handle `clean-css` errors correctly (#955)

Latest version of `clean-css` no longer throws processing errors.

5 years agofix STDIN handling of CLI (#956)
Damien Dart [Thu, 23 Aug 2018 07:20:13 +0000 (08:20 +0100)]
fix STDIN handling of CLI (#956)

Fix a bug where input from STDIN is ignored even if no input files are specified on the command line.

5 years agofix `--minify-urls` in CLI (#957)
Damien Dart [Wed, 22 Aug 2018 22:15:51 +0000 (23:15 +0100)]
fix `--minify-urls` in CLI (#957)

Fix a bug where the "--minify-url" command-line option was ignored.

5 years agoUpdate README.md (#954)
Jay Holtslander [Tue, 21 Aug 2018 05:24:25 +0000 (22:24 -0700)]
Update README.md (#954)

5 years agoVersion 3.5.20
alexlamsl [Sun, 19 Aug 2018 08:53:46 +0000 (16:53 +0800)]
Version 3.5.20

5 years agoenhance `ignoreCustomFragments` in `minifyCSS` (#950)
Alex Lam S.L [Sun, 19 Aug 2018 08:20:09 +0000 (16:20 +0800)]
enhance `ignoreCustomFragments` in `minifyCSS` (#950)

fixes #928

5 years agoupdate dependencies
alexlamsl [Tue, 14 Aug 2018 07:20:02 +0000 (15:20 +0800)]
update dependencies
clean-css 4.2.1
commander 2.17.1
grunt-contrib-uglify 3.4.0

5 years agoVersion 3.5.19
alexlamsl [Fri, 13 Jul 2018 07:40:16 +0000 (15:40 +0800)]
Version 3.5.19

5 years agofix corner cases in `maxLineLength` (#945)
Alex Lam S.L [Tue, 10 Jul 2018 05:09:28 +0000 (13:09 +0800)]
fix corner cases in `maxLineLength` (#945)

Split lines precisely under `htmlmin:ignore` or `ignoreCustomFragments`

5 years agouse lower case in `useShortDoctype` (#944)
Alex Lam S.L [Sun, 8 Jul 2018 18:05:00 +0000 (02:05 +0800)]
use lower case in `useShortDoctype` (#944)

fixes #822

5 years agoUse https when possible. (#943)
XhmikosR [Sun, 8 Jul 2018 04:00:03 +0000 (07:00 +0300)]
Use https when possible. (#943)

5 years agoVersion 3.5.18
alexlamsl [Tue, 3 Jul 2018 07:06:14 +0000 (15:06 +0800)]
Version 3.5.18

5 years agoupdate dependencies
alexlamsl [Sat, 30 Jun 2018 17:43:05 +0000 (01:43 +0800)]
update dependencies
commander 2.16.0

5 years agofix CLI option name
alexlamsl [Thu, 28 Jun 2018 15:41:48 +0000 (23:41 +0800)]
fix CLI option name

5 years agohandle corner case when parsing DOCTYPE (#939)
Alex Lam S.L [Tue, 26 Jun 2018 20:50:09 +0000 (04:50 +0800)]
handle corner case when parsing DOCTYPE (#939)

fixes #938

5 years agoVersion 3.5.17
alexlamsl [Mon, 25 Jun 2018 20:34:39 +0000 (04:34 +0800)]
Version 3.5.17

5 years agoVersion 3.5.16
alexlamsl [Sun, 20 May 2018 18:35:33 +0000 (02:35 +0800)]
Version 3.5.16

5 years agohandle empty `class` attributes (#922)
Alex Lam S.L [Sun, 20 May 2018 18:18:49 +0000 (02:18 +0800)]
handle empty `class` attributes (#922)

fixes #921

5 years agoupdate dependencies
alexlamsl [Sun, 20 May 2018 18:13:47 +0000 (02:13 +0800)]
update dependencies
chalk 2.4.1

6 years agoimprove handling of optional table section tags (#914)
Alex Lam S.L [Wed, 18 Apr 2018 09:22:18 +0000 (17:22 +0800)]
improve handling of optional table section tags (#914)

6 years agoimprove robustness of `maxLineLength` (#913)
Alex Lam S.L [Wed, 18 Apr 2018 08:53:20 +0000 (16:53 +0800)]
improve robustness of `maxLineLength` (#913)

6 years agoadd node-chakracore to Travis CI (#911)
Alex Lam S.L [Tue, 17 Apr 2018 05:35:30 +0000 (13:35 +0800)]
add node-chakracore to Travis CI (#911)

6 years agoVersion 3.5.15
alexlamsl [Mon, 16 Apr 2018 18:19:28 +0000 (02:19 +0800)]
Version 3.5.15

6 years agoupdate dependencies
alexlamsl [Mon, 16 Apr 2018 18:03:30 +0000 (02:03 +0800)]
update dependencies
grunt-browserify 5.3.0

6 years agopreserve input `options` (#910)
Alex Lam S.L [Mon, 16 Apr 2018 14:18:20 +0000 (22:18 +0800)]
preserve input `options` (#910)

6 years agosupply context to `minifyCSS` custom processor (#909)
Alex Lam S.L [Mon, 16 Apr 2018 13:56:44 +0000 (21:56 +0800)]
supply context to `minifyCSS` custom processor (#909)

6 years agorestore online web testing
alexlamsl [Fri, 13 Apr 2018 11:13:46 +0000 (19:13 +0800)]
restore online web testing

6 years agoVersion 3.5.14
alexlamsl [Sat, 7 Apr 2018 19:46:00 +0000 (03:46 +0800)]
Version 3.5.14

6 years agoPreserve whitespace around inline <ruby> (#905)
Sam Grundman [Sat, 7 Apr 2018 19:14:09 +0000 (15:14 -0400)]
Preserve whitespace around inline <ruby> (#905)

also:
* Preserve whitespace inside <rp> tag (to buffer parentheses for very
old browsers)
* Preserve whitespace around inline <rtc> tags
* Mark <rb> as valid HTML

fixes #904

6 years agoVersion 3.5.13
alexlamsl [Sat, 31 Mar 2018 12:07:13 +0000 (20:07 +0800)]
Version 3.5.13

6 years agofix race in QUnit web test (#899)
Alex Lam S.L [Thu, 29 Mar 2018 07:03:25 +0000 (16:03 +0900)]
fix race in QUnit web test (#899)

6 years agoreduce dependencies (#898)
Alex Lam S.L [Thu, 29 Mar 2018 06:35:08 +0000 (15:35 +0900)]
reduce dependencies (#898)

- inline `ncname`

6 years agoVersion 3.5.12
alexlamsl [Mon, 19 Mar 2018 18:32:01 +0000 (02:32 +0800)]
Version 3.5.12

6 years agofix corner case in `decodeEntities` (#894)
Alex Lam S.L [Mon, 19 Mar 2018 18:13:53 +0000 (02:13 +0800)]
fix corner case in `decodeEntities` (#894)

fixes #893

6 years agoVersion 3.5.11
alexlamsl [Wed, 14 Mar 2018 18:48:12 +0000 (02:48 +0800)]
Version 3.5.11

6 years agoallow disabling of default flags on CLI (#892)
Alex Lam S.L [Wed, 14 Mar 2018 18:32:51 +0000 (02:32 +0800)]
allow disabling of default flags on CLI (#892)

fixes #860

6 years agotest Node.js 8 instead of 7
alexlamsl [Wed, 14 Mar 2018 17:54:25 +0000 (01:54 +0800)]
test Node.js 8 instead of 7

6 years agoupdate dependencies
alexlamsl [Wed, 14 Mar 2018 17:26:07 +0000 (01:26 +0800)]
update dependencies
commander 2.15.0

6 years agoRepackage with `clean-css@4.1.11`
alexlamsl [Tue, 6 Mar 2018 17:07:58 +0000 (01:07 +0800)]
Repackage with `clean-css@4.1.11`

6 years agoVersion 3.5.10
alexlamsl [Sun, 4 Mar 2018 10:34:33 +0000 (18:34 +0800)]
Version 3.5.10

6 years agoAdd "ol" and "ul" to nonPhrasing (#889)
Wei Xu [Fri, 2 Mar 2018 08:28:53 +0000 (19:28 +1100)]
Add "ol" and "ul" to nonPhrasing (#889)

fixes #888

6 years agopreserve whitespace around custom fragments within `<pre>` (#885)
Alex Lam S.L [Thu, 15 Feb 2018 21:44:49 +0000 (05:44 +0800)]
preserve whitespace around custom fragments within `<pre>` (#885)

fixes #836

6 years agoVersion 3.5.9
alexlamsl [Thu, 8 Feb 2018 19:29:02 +0000 (03:29 +0800)]
Version 3.5.9

6 years agoupdate dependencies (#884)
Alex Lam S.L [Thu, 8 Feb 2018 19:09:49 +0000 (03:09 +0800)]
update dependencies (#884)

commander 2.14.1
minimize 2.2.0

6 years agotest minified asset
alexlamsl [Thu, 8 Feb 2018 10:14:11 +0000 (18:14 +0800)]
test minified asset

6 years agofix corner cases in `collapseWhitespace` (#883)
Alex Lam S.L [Wed, 7 Feb 2018 13:12:51 +0000 (21:12 +0800)]
fix corner cases in `collapseWhitespace` (#883)

fixes #878

6 years agoupdate online assets
alexlamsl [Thu, 28 Dec 2017 19:42:33 +0000 (03:42 +0800)]
update online assets

6 years agoVersion 3.5.8
alexlamsl [Sun, 24 Dec 2017 20:34:30 +0000 (04:34 +0800)]
Version 3.5.8

6 years agoVersion 3.5.7
alexlamsl [Sat, 25 Nov 2017 22:14:21 +0000 (06:14 +0800)]
Version 3.5.7

6 years agoupdate dependencies
alexlamsl [Sat, 25 Nov 2017 22:01:00 +0000 (06:01 +0800)]
update dependencies
commander 2.12.1
chalk 2.3.0
uglify-js 3.2.0

6 years agoparse `option` element correctly (#869)
Alex Lam S.L [Sat, 25 Nov 2017 21:57:59 +0000 (05:57 +0800)]
parse `option` element correctly (#869)

fixes #866

6 years agodon't automatically throw out trailing semicolons in style attributes (#854)
DChristiany [Thu, 26 Oct 2017 07:07:00 +0000 (09:07 +0200)]
don't automatically throw out trailing semicolons in style attributes (#854)

fixes #798
fixes #852

6 years agoVersion 3.5.6
alexlamsl [Tue, 17 Oct 2017 22:20:54 +0000 (06:20 +0800)]
Version 3.5.6

6 years agocorrectly parse HTML4 nested inline elements (#861)
Alex Lam S.L [Tue, 17 Oct 2017 21:58:48 +0000 (05:58 +0800)]
correctly parse HTML4 nested inline elements (#861)

fixes #857

6 years agoVersion 3.5.5
alexlamsl [Tue, 12 Sep 2017 17:06:41 +0000 (01:06 +0800)]
Version 3.5.5

6 years agoupdate dependecies
alexlamsl [Tue, 12 Sep 2017 16:45:52 +0000 (00:45 +0800)]
update dependecies
grunt-contrib-uglify 3.1.0

6 years agoPreserve en/em/non-breaking/hair space etc. while minifying (#849)
Andreas Lind [Mon, 11 Sep 2017 22:04:01 +0000 (00:04 +0200)]
Preserve en/em/non-breaking/hair space etc. while minifying (#849)

6 years agoVersion 3.5.4
alexlamsl [Sun, 10 Sep 2017 19:11:24 +0000 (03:11 +0800)]
Version 3.5.4

6 years agoupdate benchmark
alexlamsl [Sun, 10 Sep 2017 18:41:10 +0000 (02:41 +0800)]
update benchmark

6 years agoupdate dependencies
alexlamsl [Sun, 10 Sep 2017 13:56:07 +0000 (21:56 +0800)]
update dependencies
chalk 2.1.0
grunt-browserify 5.2.0
uglify-js 3.1.0

6 years agoVersion 3.5.3
alexlamsl [Sun, 23 Jul 2017 08:06:21 +0000 (16:06 +0800)]
Version 3.5.3

6 years agofix CLI when overwriting input
alexlamsl [Sat, 22 Jul 2017 08:01:50 +0000 (16:01 +0800)]
fix CLI when overwriting input

fixes #829

6 years agoupdate dependencies
alexlamsl [Sun, 16 Jul 2017 15:04:09 +0000 (23:04 +0800)]
update dependencies
chalk 2.0.1
commander 2.11.0
gruntify-eslint 4.0.0

6 years agoMerge pull request #819 from papandreou/patch-1
Alex Lam S.L [Sat, 27 May 2017 09:07:14 +0000 (17:07 +0800)]
Merge pull request #819 from papandreou/patch-1

Fix typo in comment (sorry for introducing it!)

6 years agoFix typo in comment (sorry for introducing it!)
Andreas Lind [Sat, 27 May 2017 09:00:29 +0000 (11:00 +0200)]
Fix typo in comment (sorry for introducing it!)

6 years agoVersion 3.5.2
alexlamsl [Thu, 25 May 2017 09:20:22 +0000 (17:20 +0800)]
Version 3.5.2

6 years agoMerge pull request #817 from papandreou/fix/whitespaceStackHousekeeping
Alex Lam S.L [Thu, 25 May 2017 07:00:21 +0000 (15:00 +0800)]
Merge pull request #817 from papandreou/fix/whitespaceStackHousekeeping

Fix stackNoTrimWhitespace and stackNoCollapseWhitespace housekeeping

6 years agoFix stackNoTrimWhitespace and stackNoCollapseWhitespace housekeeping
Andreas Lind [Wed, 24 May 2017 13:26:49 +0000 (15:26 +0200)]
Fix stackNoTrimWhitespace and stackNoCollapseWhitespace housekeeping

Previously the first encountered end tag matching the top item would
clear it from the stack, regardless of whether the two were actually
a start + end pair.

6 years agoVersion 3.5.1
alexlamsl [Mon, 22 May 2017 13:30:58 +0000 (21:30 +0800)]
Version 3.5.1

6 years agoMerge pull request #813 from papandreou/fix/canCollapseAndTrimWhitespaceHooks
Alex Lam S.L [Mon, 22 May 2017 13:10:29 +0000 (21:10 +0800)]
Merge pull request #813 from papandreou/fix/canCollapseAndTrimWhitespaceHooks

Add the ability for options.can{Trim,Collapse}Whitespace to veto the default implementation when that returns true.

6 years agoAdd the ability for options.can{Trim,Collapse}Whitespace to veto the default implemen...
Andreas Lind [Mon, 22 May 2017 10:19:28 +0000 (12:19 +0200)]
Add the ability for options.can{Trim,Collapse}Whitespace to veto the default implementation when that returns true.

Also, provide the default implementation as the 3rd parameter to the
custom hook so the user doesn't have to reimplement it.

6 years agoMerge pull request #811 from papandreou/fix/consoleLogWhenTesting
Alex Lam S.L [Mon, 22 May 2017 08:55:33 +0000 (16:55 +0800)]
Merge pull request #811 from papandreou/fix/consoleLogWhenTesting

grunt qunit: Don't break in JSON.parse when debug output is generated while running the test suite

6 years agogrunt qunit: Don't break in JSON.parse when debug output is generated while running...
Andreas Lind [Mon, 22 May 2017 07:17:18 +0000 (09:17 +0200)]
grunt qunit: Don't break in JSON.parse when debug output is generated while running the test suite

6 years agoVersion 3.5.0
alexlamsl [Mon, 15 May 2017 20:06:16 +0000 (04:06 +0800)]
Version 3.5.0

6 years agoMerge pull request #809 from kangax/uglify-v3
Alex Lam S.L [Mon, 15 May 2017 19:35:12 +0000 (03:35 +0800)]
Merge pull request #809 from kangax/uglify-v3

upgrade to uglify-js 3.0.5

6 years agoupgrade to uglify-js 3.0.5
alexlamsl [Mon, 15 May 2017 19:26:18 +0000 (03:26 +0800)]
upgrade to uglify-js 3.0.5
bump to clean-css 4.1.2

6 years agoVersion 3.4.4
alexlamsl [Sat, 6 May 2017 12:34:59 +0000 (20:34 +0800)]
Version 3.4.4

6 years agoMerge pull request #807 from kangax/issue-805
Alex Lam S.L [Sat, 6 May 2017 12:12:36 +0000 (20:12 +0800)]
Merge pull request #807 from kangax/issue-805

fix `sortClassName` on custom fragments

6 years agomore tests
alexlamsl [Sat, 6 May 2017 11:52:46 +0000 (19:52 +0800)]
more tests

6 years agofix `sortClassName` on custom fragments
alexlamsl [Sat, 6 May 2017 10:56:58 +0000 (18:56 +0800)]
fix `sortClassName` on custom fragments
Prefer sub-optimal sort over extraneous whitespaces.

fixes #805

7 years agoVersion 3.4.3
alexlamsl [Sun, 9 Apr 2017 07:37:10 +0000 (15:37 +0800)]
Version 3.4.3

7 years agoadjust minifyJS options
alexlamsl [Sun, 9 Apr 2017 07:10:48 +0000 (15:10 +0800)]
adjust minifyJS options
`inline_script` now enabled by default

7 years agoupdate dependencies
alexlamsl [Sun, 9 Apr 2017 07:09:45 +0000 (15:09 +0800)]
update dependencies
grunt-contrib-uglify 2.3.0
progress 2.0.0
uglify-js 2.8.22

7 years agoVersion 3.4.2
alexlamsl [Sun, 19 Mar 2017 06:37:47 +0000 (14:37 +0800)]
Version 3.4.2

7 years agoMerge pull request #796 from kangax/parser-nbsp
Alex Lam S.L [Sun, 19 Mar 2017 06:21:39 +0000 (14:21 +0800)]
Merge pull request #796 from kangax/parser-nbsp

parse whitespace attribute values properly

7 years agoparse whitespace attribute values properly
alexlamsl [Sun, 19 Mar 2017 06:13:04 +0000 (14:13 +0800)]
parse whitespace attribute values properly

7 years agoMerge pull request #795 from kangax/issue-794
Alex Lam S.L [Sun, 19 Mar 2017 05:09:35 +0000 (13:09 +0800)]
Merge pull request #795 from kangax/issue-794

avoid token overriding prototype members

7 years agoavoid token overriding prototype members
alexlamsl [Sun, 19 Mar 2017 05:04:34 +0000 (13:04 +0800)]
avoid token overriding prototype members

fixes #794

7 years agoVersion 3.4.1
alexlamsl [Mon, 13 Mar 2017 20:06:46 +0000 (04:06 +0800)]
Version 3.4.1