Mathias Bynens [Wed, 24 Oct 2018 08:17:23 +0000 (10:17 +0200)]
Update build
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
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`
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.
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. `&` even in cases when doing so changes the meaning (and rendering) of the resulting HTML.
Fixes #964.
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.
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.
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.
Jay Holtslander [Tue, 21 Aug 2018 05:24:25 +0000 (22:24 -0700)]
Update README.md (#954)
alexlamsl [Sun, 19 Aug 2018 08:53:46 +0000 (16:53 +0800)]
Version 3.5.20
Alex Lam S.L [Sun, 19 Aug 2018 08:20:09 +0000 (16:20 +0800)]
enhance `ignoreCustomFragments` in `minifyCSS` (#950)
fixes #928
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
alexlamsl [Fri, 13 Jul 2018 07:40:16 +0000 (15:40 +0800)]
Version 3.5.19
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`
Alex Lam S.L [Sun, 8 Jul 2018 18:05:00 +0000 (02:05 +0800)]
use lower case in `useShortDoctype` (#944)
fixes #822
XhmikosR [Sun, 8 Jul 2018 04:00:03 +0000 (07:00 +0300)]
Use https when possible. (#943)
alexlamsl [Tue, 3 Jul 2018 07:06:14 +0000 (15:06 +0800)]
Version 3.5.18
alexlamsl [Sat, 30 Jun 2018 17:43:05 +0000 (01:43 +0800)]
update dependencies
commander 2.16.0
alexlamsl [Thu, 28 Jun 2018 15:41:48 +0000 (23:41 +0800)]
fix CLI option name
Alex Lam S.L [Tue, 26 Jun 2018 20:50:09 +0000 (04:50 +0800)]
handle corner case when parsing DOCTYPE (#939)
fixes #938
alexlamsl [Mon, 25 Jun 2018 20:34:39 +0000 (04:34 +0800)]
Version 3.5.17
alexlamsl [Sun, 20 May 2018 18:35:33 +0000 (02:35 +0800)]
Version 3.5.16
Alex Lam S.L [Sun, 20 May 2018 18:18:49 +0000 (02:18 +0800)]
handle empty `class` attributes (#922)
fixes #921
alexlamsl [Sun, 20 May 2018 18:13:47 +0000 (02:13 +0800)]
update dependencies
chalk 2.4.1
Alex Lam S.L [Wed, 18 Apr 2018 09:22:18 +0000 (17:22 +0800)]
improve handling of optional table section tags (#914)
Alex Lam S.L [Wed, 18 Apr 2018 08:53:20 +0000 (16:53 +0800)]
improve robustness of `maxLineLength` (#913)
Alex Lam S.L [Tue, 17 Apr 2018 05:35:30 +0000 (13:35 +0800)]
add node-chakracore to Travis CI (#911)
alexlamsl [Mon, 16 Apr 2018 18:19:28 +0000 (02:19 +0800)]
Version 3.5.15
alexlamsl [Mon, 16 Apr 2018 18:03:30 +0000 (02:03 +0800)]
update dependencies
grunt-browserify 5.3.0
Alex Lam S.L [Mon, 16 Apr 2018 14:18:20 +0000 (22:18 +0800)]
preserve input `options` (#910)
Alex Lam S.L [Mon, 16 Apr 2018 13:56:44 +0000 (21:56 +0800)]
supply context to `minifyCSS` custom processor (#909)
alexlamsl [Fri, 13 Apr 2018 11:13:46 +0000 (19:13 +0800)]
restore online web testing
alexlamsl [Sat, 7 Apr 2018 19:46:00 +0000 (03:46 +0800)]
Version 3.5.14
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
alexlamsl [Sat, 31 Mar 2018 12:07:13 +0000 (20:07 +0800)]
Version 3.5.13
Alex Lam S.L [Thu, 29 Mar 2018 07:03:25 +0000 (16:03 +0900)]
fix race in QUnit web test (#899)
Alex Lam S.L [Thu, 29 Mar 2018 06:35:08 +0000 (15:35 +0900)]
reduce dependencies (#898)
- inline `ncname`
alexlamsl [Mon, 19 Mar 2018 18:32:01 +0000 (02:32 +0800)]
Version 3.5.12
Alex Lam S.L [Mon, 19 Mar 2018 18:13:53 +0000 (02:13 +0800)]
fix corner case in `decodeEntities` (#894)
fixes #893
alexlamsl [Wed, 14 Mar 2018 18:48:12 +0000 (02:48 +0800)]
Version 3.5.11
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
alexlamsl [Wed, 14 Mar 2018 17:54:25 +0000 (01:54 +0800)]
test Node.js 8 instead of 7
alexlamsl [Wed, 14 Mar 2018 17:26:07 +0000 (01:26 +0800)]
update dependencies
commander 2.15.0
alexlamsl [Tue, 6 Mar 2018 17:07:58 +0000 (01:07 +0800)]
Repackage with `clean-css@4.1.11`
alexlamsl [Sun, 4 Mar 2018 10:34:33 +0000 (18:34 +0800)]
Version 3.5.10
Wei Xu [Fri, 2 Mar 2018 08:28:53 +0000 (19:28 +1100)]
Add "ol" and "ul" to nonPhrasing (#889)
fixes #888
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
alexlamsl [Thu, 8 Feb 2018 19:29:02 +0000 (03:29 +0800)]
Version 3.5.9
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
alexlamsl [Thu, 8 Feb 2018 10:14:11 +0000 (18:14 +0800)]
test minified asset
Alex Lam S.L [Wed, 7 Feb 2018 13:12:51 +0000 (21:12 +0800)]
fix corner cases in `collapseWhitespace` (#883)
fixes #878
alexlamsl [Thu, 28 Dec 2017 19:42:33 +0000 (03:42 +0800)]
update online assets
alexlamsl [Sun, 24 Dec 2017 20:34:30 +0000 (04:34 +0800)]
Version 3.5.8
alexlamsl [Sat, 25 Nov 2017 22:14:21 +0000 (06:14 +0800)]
Version 3.5.7
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
Alex Lam S.L [Sat, 25 Nov 2017 21:57:59 +0000 (05:57 +0800)]
parse `option` element correctly (#869)
fixes #866
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
alexlamsl [Tue, 17 Oct 2017 22:20:54 +0000 (06:20 +0800)]
Version 3.5.6
Alex Lam S.L [Tue, 17 Oct 2017 21:58:48 +0000 (05:58 +0800)]
correctly parse HTML4 nested inline elements (#861)
fixes #857
alexlamsl [Tue, 12 Sep 2017 17:06:41 +0000 (01:06 +0800)]
Version 3.5.5
alexlamsl [Tue, 12 Sep 2017 16:45:52 +0000 (00:45 +0800)]
update dependecies
grunt-contrib-uglify 3.1.0
Andreas Lind [Mon, 11 Sep 2017 22:04:01 +0000 (00:04 +0200)]
Preserve en/em/non-breaking/hair space etc. while minifying (#849)
alexlamsl [Sun, 10 Sep 2017 19:11:24 +0000 (03:11 +0800)]
Version 3.5.4
alexlamsl [Sun, 10 Sep 2017 18:41:10 +0000 (02:41 +0800)]
update benchmark
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
alexlamsl [Sun, 23 Jul 2017 08:06:21 +0000 (16:06 +0800)]
Version 3.5.3
alexlamsl [Sat, 22 Jul 2017 08:01:50 +0000 (16:01 +0800)]
fix CLI when overwriting input
fixes #829
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
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!)
Andreas Lind [Sat, 27 May 2017 09:00:29 +0000 (11:00 +0200)]
Fix typo in comment (sorry for introducing it!)
alexlamsl [Thu, 25 May 2017 09:20:22 +0000 (17:20 +0800)]
Version 3.5.2
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
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.
alexlamsl [Mon, 22 May 2017 13:30:58 +0000 (21:30 +0800)]
Version 3.5.1
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.
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.
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
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
alexlamsl [Mon, 15 May 2017 20:06:16 +0000 (04:06 +0800)]
Version 3.5.0
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
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
alexlamsl [Sat, 6 May 2017 12:34:59 +0000 (20:34 +0800)]
Version 3.4.4
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
alexlamsl [Sat, 6 May 2017 11:52:46 +0000 (19:52 +0800)]
more tests
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
alexlamsl [Sun, 9 Apr 2017 07:37:10 +0000 (15:37 +0800)]
Version 3.4.3
alexlamsl [Sun, 9 Apr 2017 07:10:48 +0000 (15:10 +0800)]
adjust minifyJS options
`inline_script` now enabled by default
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
alexlamsl [Sun, 19 Mar 2017 06:37:47 +0000 (14:37 +0800)]
Version 3.4.2
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
alexlamsl [Sun, 19 Mar 2017 06:13:04 +0000 (14:13 +0800)]
parse whitespace attribute values properly
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
alexlamsl [Sun, 19 Mar 2017 05:04:34 +0000 (13:04 +0800)]
avoid token overriding prototype members
fixes #794
alexlamsl [Mon, 13 Mar 2017 20:06:46 +0000 (04:06 +0800)]
Version 3.4.1
alexlamsl [Mon, 13 Mar 2017 19:28:10 +0000 (03:28 +0800)]
upgrade dependencies
grunt-contrib-uglify 2.2.0
minimize 2.1.0
Alex Lam S.L [Mon, 13 Mar 2017 19:27:15 +0000 (03:27 +0800)]
Merge pull request #793 from kangax/issue-792
fix minifyJS on event attributes
alexlamsl [Mon, 13 Mar 2017 19:24:42 +0000 (03:24 +0800)]
fix minifyJS on event attributes
latest `uglify-js` has advanced side-effect-free optimisation which invalidates an old hack
fixes #792
alexlamsl [Tue, 28 Feb 2017 14:30:00 +0000 (22:30 +0800)]
Version 3.4.0
Alex Lam S.L [Tue, 28 Feb 2017 13:11:26 +0000 (21:11 +0800)]
Merge pull request #789 from kangax/uglify-js-2.8.0
uglify-js 2.8.0
alexlamsl [Tue, 28 Feb 2017 13:05:41 +0000 (21:05 +0800)]
upgrade dependencies
uglify-js 2.8.0