htmlnano 2.0.3 → 2.0.4
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/CHANGELOG.md +32 -3
- package/docs/package-lock.json +7454 -11530
- package/docs/package.json +3 -3
- package/lib/helpers.js +2 -1
- package/lib/htmlnano.js +7 -4
- package/lib/modules/mergeScripts.js +3 -1
- package/lib/modules/mergeStyles.js +3 -1
- package/lib/modules/minifyCss.js +4 -0
- package/lib/modules/minifyJs.js +17 -1
- package/lib/modules/minifyJson.js +4 -0
- package/lib/modules/minifySvg.js +11 -11
- package/lib/modules/normalizeAttributeValues.js +0 -5
- package/package.json +8 -8
- package/test.js +48 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,31 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
|
|
5
|
+
|
|
6
|
+
## [2.0.4] - 2023-04-15
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
- Should not minify `<script>` and `<style>` with SRI [#220]
|
|
10
|
+
- Should not merge `<style>` or `<script>` with SRI [#220]
|
|
11
|
+
- Should not minify json with SRI [#220]
|
|
12
|
+
|
|
13
|
+
|
|
5
14
|
## [2.0.3] - 2022-11-13
|
|
6
|
-
|
|
7
|
-
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- Minify function for `HtmlMinimizerWebpackPlugin`
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
- `collapseWhitespace`: handle textNode when comment is preserved [#184]
|
|
21
|
+
- `minifyUrls`: srcset & javascript: url [#185]
|
|
22
|
+
- Correct missing value default usage
|
|
23
|
+
- `collapseBooleanAttributes`: empty string attributes
|
|
24
|
+
- Guard type of attributes' value [#195]
|
|
25
|
+
- Do not choke on svg error [#197]
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
- Minify based on invalid value default
|
|
29
|
+
- Avoid hardcoding preset keys
|
|
8
30
|
|
|
9
31
|
|
|
10
32
|
## [2.0.2] - 2022-04-06
|
|
@@ -252,7 +274,8 @@ Otherwise, you have to adapt the config according to the new [PurgeCSS@3](https:
|
|
|
252
274
|
- Remove attributes that contains only white spaces.
|
|
253
275
|
|
|
254
276
|
|
|
255
|
-
[2.0.
|
|
277
|
+
[2.0.4]: https://github.com/posthtml/htmlnano/compare/2.0.3...2.0.4
|
|
278
|
+
[2.0.3]: https://github.com/posthtml/htmlnano/compare/2.0.2...2.0.3
|
|
256
279
|
[2.0.2]: https://github.com/posthtml/htmlnano/compare/2.0.1...2.0.2
|
|
257
280
|
[2.0.1]: https://github.com/posthtml/htmlnano/compare/2.0.0...2.0.1
|
|
258
281
|
[2.0.0]: https://github.com/posthtml/htmlnano/compare/1.1.1...2.0.0
|
|
@@ -281,6 +304,12 @@ Otherwise, you have to adapt the config according to the new [PurgeCSS@3](https:
|
|
|
281
304
|
[0.1.2]: https://github.com/posthtml/htmlnano/compare/0.1.1...0.1.2
|
|
282
305
|
[0.1.1]: https://github.com/posthtml/htmlnano/compare/0.1.0...0.1.1
|
|
283
306
|
|
|
307
|
+
|
|
308
|
+
[#220]: https://github.com/posthtml/htmlnano/issues/220
|
|
309
|
+
[#197]: https://github.com/posthtml/htmlnano/issues/197
|
|
310
|
+
[#195]: https://github.com/posthtml/htmlnano/issues/195
|
|
311
|
+
[#185]: https://github.com/posthtml/htmlnano/issues/185
|
|
312
|
+
[#184]: https://github.com/posthtml/htmlnano/issues/184
|
|
284
313
|
[#182]: https://github.com/posthtml/htmlnano/issues/182
|
|
285
314
|
[#180]: https://github.com/posthtml/htmlnano/issues/180
|
|
286
315
|
[#170]: https://github.com/posthtml/htmlnano/issues/170
|