html-minifier 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -34
- package/cli.js +218 -282
- package/package.json +4 -8
- package/sample-cli-config-file.conf +27 -18
- package/src/htmllint.js +67 -55
- package/src/htmlminifier.js +223 -114
- package/src/htmlparser.js +132 -130
- package/src/tokenchain.js +58 -0
- package/CHANGELOG.md +0 -120
- package/dist/htmlminifier.js +0 -32753
- package/dist/htmlminifier.min.js +0 -18
package/CHANGELOG.md
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
## [0.7.0](https://github.com/kangax/html-minifier/compare/v0.6.9...v0.7.0)
|
|
2
|
-
|
|
3
|
-
* TODO
|
|
4
|
-
|
|
5
|
-
## [0.6.9](https://github.com/kangax/html-minifier/compare/v0.6.8...v0.6.9)
|
|
6
|
-
|
|
7
|
-
* TODO
|
|
8
|
-
|
|
9
|
-
## [0.6.8](https://github.com/kangax/html-minifier/compare/v0.6.7...v0.6.8)
|
|
10
|
-
|
|
11
|
-
* TODO
|
|
12
|
-
|
|
13
|
-
## [0.6.7](https://github.com/kangax/html-minifier/compare/v0.6.6...v0.6.7)
|
|
14
|
-
|
|
15
|
-
* Preserve empty script with `src` attribute
|
|
16
|
-
* Make `draggable` enumerated attribute
|
|
17
|
-
* Add option to preserve a single line break on collapse
|
|
18
|
-
* Do not treat draggable as a boolean attribute
|
|
19
|
-
* Add `minifyURLs` option
|
|
20
|
-
* Add `customAttrCollapse` option
|
|
21
|
-
* `collapseBoolean` is case-insensitive
|
|
22
|
-
* Remove removable attrs with unspecified values
|
|
23
|
-
* `removeComments` affects htmlmin:ignore comments
|
|
24
|
-
* Quote terminal attribute value by unary slash
|
|
25
|
-
* Closing tag search is case-insensitive
|
|
26
|
-
* `s` tag has been reinstated
|
|
27
|
-
* Remove `i`, `b`, `u` tags from linter as problematic
|
|
28
|
-
|
|
29
|
-
## [0.6.6](https://github.com/kangax/html-minifier/compare/v0.6.5...v0.6.6)
|
|
30
|
-
|
|
31
|
-
* Fix Firefox attribute bug
|
|
32
|
-
* Add `customAttrAssign` option
|
|
33
|
-
* Add `maxLineLength` option
|
|
34
|
-
* Add `customAttrSurround` option
|
|
35
|
-
|
|
36
|
-
## [0.6.5](https://github.com/kangax/html-minifier/compare/v0.6.4...v0.6.5)
|
|
37
|
-
|
|
38
|
-
* `caseSensitive` option now applies to tags and attributes
|
|
39
|
-
|
|
40
|
-
## [0.6.4](https://github.com/kangax/html-minifier/compare/v0.6.3...v0.6.4)
|
|
41
|
-
|
|
42
|
-
* Support for mixed-case tags
|
|
43
|
-
* Support IE downlevel-revealed conditional comments
|
|
44
|
-
* Add support for `wbr` element
|
|
45
|
-
|
|
46
|
-
## [0.6.3](https://github.com/kangax/html-minifier/compare/v0.6.2...v0.6.3)
|
|
47
|
-
|
|
48
|
-
* Do not treat `translate` attribute as boolean
|
|
49
|
-
* Add `svg` element in inline list
|
|
50
|
-
* Do not remove special spaces like ` `
|
|
51
|
-
* Make `collapseWhitespace` more resilient
|
|
52
|
-
|
|
53
|
-
## [0.6.2](https://github.com/kangax/html-minifier/compare/v0.6.1...v0.6.2)
|
|
54
|
-
|
|
55
|
-
* Fix bug introduced by `processScripts` option
|
|
56
|
-
|
|
57
|
-
## [0.6.1](https://github.com/kangax/html-minifier/compare/v0.6.0...v0.6.1)
|
|
58
|
-
|
|
59
|
-
* Add CLI
|
|
60
|
-
* Fix error with valueless attributes (e.g. `<a href>`). [#169](https://github.com/kangax/html-minifier/issues/169)
|
|
61
|
-
|
|
62
|
-
## [0.6.0](https://github.com/kangax/html-minifier/compare/v0.5.6...v0.6.0)
|
|
63
|
-
|
|
64
|
-
* Minify meta viewport value [#159](https://github.com/kangax/html-minifier/issues/159)
|
|
65
|
-
* Add support for ignoring markup via `<!-- htmlmin:ignore -->` [#89](https://github.com/kangax/html-minifier/issues/89)
|
|
66
|
-
* Add support for `processScripts` [#139](https://github.com/kangax/html-minifier/issues/139)
|
|
67
|
-
* Add support for `ignoreCustomComments` [#145](https://github.com/kangax/html-minifier/issues/145)
|
|
68
|
-
* Add `conservativeCollapse` option
|
|
69
|
-
* Fix handling of valueless attributes [#150](https://github.com/kangax/html-minifier/issues/150)
|
|
70
|
-
* Escape closing script tag [#142](https://github.com/kangax/html-minifier/issues/142)
|
|
71
|
-
* Add support for minifying CSS (`minifyCSS`)
|
|
72
|
-
* Add support for minifying JS (`minifyJS`)
|
|
73
|
-
* Don't add empty string value to valueless attributes
|
|
74
|
-
* Add more boolean attributes
|
|
75
|
-
* No more tags in lint output (Node friendly)
|
|
76
|
-
* Add more optional tags
|
|
77
|
-
* Node.js v0.10 is needed for development
|
|
78
|
-
|
|
79
|
-
## [0.5.6 / 2014-03-12](https://github.com/kangax/html-minifier/compare/v0.5.5...v0.5.6)
|
|
80
|
-
|
|
81
|
-
* Add an option to keep closing slash in singleton tags [#76](https://github.com/kangax/html-minifier/issues/76)
|
|
82
|
-
* Make `</source>` tag optional [#92](https://github.com/kangax/html-minifier/issues/92)
|
|
83
|
-
* Add `td` and `th` to optional tags list [#95](https://github.com/kangax/html-minifier/issues/95)
|
|
84
|
-
* Add `caseSensitive` option [#106](https://github.com/kangax/html-minifier/issues/106)
|
|
85
|
-
* Add options quick reference in README.md [#131](https://github.com/kangax/html-minifier/issues/131)
|
|
86
|
-
* Fix quotes in attributes
|
|
87
|
-
* Ignore unneeded files from being included in the npm package
|
|
88
|
-
* Switch to Grunt for development
|
|
89
|
-
|
|
90
|
-
## [0.5.5 / 2014-01-03](https://github.com/kangax/html-minifier/compare/v0.5.4...v0.5.5)
|
|
91
|
-
|
|
92
|
-
* Add missing inline tags for collapsing whitespace
|
|
93
|
-
* Preserve quotes if attribute ends with a trailing slash
|
|
94
|
-
* Add space around time tag
|
|
95
|
-
* Newlines are collapsed to one space
|
|
96
|
-
|
|
97
|
-
## [0.5.4 / 2013-09-04](https://github.com/kangax/html-minifier/compare/v0.5.3...v0.5.4)
|
|
98
|
-
|
|
99
|
-
* Add support for ignoring `<%...%>` and `<?...?>`
|
|
100
|
-
* Fix space after `textarea`
|
|
101
|
-
* Add support for ignored comments (`<!--!`)
|
|
102
|
-
* Add more tags to `collapseWhitespaceSmart` whitelist
|
|
103
|
-
|
|
104
|
-
## [0.5.3 / 2013-06-19](https://github.com/kangax/html-minifier/compare/v0.5.2...v0.5.3)
|
|
105
|
-
|
|
106
|
-
* Better support for boolean attributes [#63](https://github.com/kangax/html-minifier/issues/76)
|
|
107
|
-
* Make sure `code`, `kbd` and `quote` tags have space around them
|
|
108
|
-
* Improve `canRemoveAttributeQuotes`
|
|
109
|
-
* Add html5 option (supports custom elements, block elements in inline)
|
|
110
|
-
|
|
111
|
-
## [0.5.2 / 2013-05-13](https://github.com/kangax/html-minifier/compare/v0.5.1...v0.5.2)
|
|
112
|
-
|
|
113
|
-
* Fix NPM package
|
|
114
|
-
|
|
115
|
-
## [0.5.1 / 2013-05-12](https://github.com/kangax/html-minifier/compare/v0.5.0...v0.5.1)
|
|
116
|
-
|
|
117
|
-
* Menu is no longer deprecated in HTML5 [#23](https://github.com/kangax/html-minifier/issues/23)
|
|
118
|
-
* Make parser ignore block elements in inline elements (allowed in HTML5). [#51](https://github.com/kangax/html-minifier/issues/51) [#52](https://github.com/kangax/html-minifier/issues/52) [#54](https://github.com/kangax/html-minifier/issues/54)
|
|
119
|
-
* Fix issue with closing tags
|
|
120
|
-
* Smarter `collapseWhitespace` (preserve space around inline tags)
|