w-data-html-minify 1.0.4 → 1.0.5
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
CHANGED
|
@@ -6,6 +6,7 @@ A tool for minify html.
|
|
|
6
6
|
[](https://npmjs.org/package/w-data-html-minify)
|
|
7
7
|
[](https://github.com/yuda-lyu/w-data-html-minify)
|
|
8
8
|
[](https://npmjs.org/package/w-data-html-minify)
|
|
9
|
+
[](https://npmjs.org/package/w-data-html-minify)
|
|
9
10
|
[](https://www.jsdelivr.com/package/npm/w-data-html-minify)
|
|
10
11
|
|
|
11
12
|
## Documentation
|
|
@@ -34,7 +35,6 @@ let hin = `
|
|
|
34
35
|
let hout = wdhm(hin)
|
|
35
36
|
console.log(hout)
|
|
36
37
|
// => <html><head></head><body>abc</body></html>
|
|
37
|
-
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### In a browser(UMD module):
|
|
@@ -42,13 +42,12 @@ console.log(hout)
|
|
|
42
42
|
|
|
43
43
|
[Necessary] Add script for w-data-html-minify.
|
|
44
44
|
```alias
|
|
45
|
-
<script src="https://cdn.jsdelivr.net/npm/w-data-html-minify@1.0.
|
|
45
|
+
<script src="https://cdn.jsdelivr.net/npm/w-data-html-minify@1.0.5/dist/w-data-html-minify.umd.js"></script>
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
> **minify html:** [ex-html-minify.html](https://yuda-lyu.github.io/w-data-html-minify/examples/ex-html-minify.html) [[source code](https://github.com/yuda-lyu/w-data-html-minify/blob/master/docs/examples/ex-html-minify.html)]
|
|
49
49
|
|
|
50
50
|
```alias
|
|
51
|
-
|
|
52
51
|
let wdhm = window['w-data-html-minify']
|
|
53
52
|
// console.log(wdhm)
|
|
54
53
|
|
|
@@ -61,5 +60,4 @@ let hin = `
|
|
|
61
60
|
let hout = wdhm(hin)
|
|
62
61
|
console.log(hout)
|
|
63
62
|
// => <html><head></head><body>abc</body></html>
|
|
64
|
-
|
|
65
63
|
```
|
|
@@ -121,7 +121,7 @@ export default WDataHtmlMinify
|
|
|
121
121
|
<br class="clear">
|
|
122
122
|
|
|
123
123
|
<footer>
|
|
124
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue
|
|
124
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Mar 19 2024 14:28:24 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
125
125
|
</footer>
|
|
126
126
|
|
|
127
127
|
<script>prettyPrint();</script>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/wsemi/dist/wsemi.umd.js"></script>
|
|
12
12
|
|
|
13
13
|
<script _src="../src/htmlminifier.min.js"></script>
|
|
14
|
-
<script src="https://cdn.jsdelivr.net/npm/w-data-html-minify@1.0.
|
|
14
|
+
<script src="https://cdn.jsdelivr.net/npm/w-data-html-minify@1.0.5/dist/w-data-html-minify.umd.js"></script>
|
|
15
15
|
|
|
16
16
|
</head>
|
|
17
17
|
|
package/docs/global.html
CHANGED
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
<br class="clear">
|
|
365
365
|
|
|
366
366
|
<footer>
|
|
367
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue
|
|
367
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Mar 19 2024 14:28:24 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
368
368
|
</footer>
|
|
369
369
|
|
|
370
370
|
<script>prettyPrint();</script>
|
|
@@ -94,7 +94,7 @@ export default htmlminifier
|
|
|
94
94
|
<br class="clear">
|
|
95
95
|
|
|
96
96
|
<footer>
|
|
97
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue
|
|
97
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Mar 19 2024 14:28:24 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
98
98
|
</footer>
|
|
99
99
|
|
|
100
100
|
<script>prettyPrint();</script>
|
package/docs/index.html
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
<br class="clear">
|
|
72
72
|
|
|
73
73
|
<footer>
|
|
74
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue
|
|
74
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Mar 19 2024 14:28:24 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
75
75
|
</footer>
|
|
76
76
|
|
|
77
77
|
<script>prettyPrint();</script>
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "w-data-html-minify",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"main": "dist/w-data-html-minify.umd.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"html-minifier": "^4.0.0",
|
|
7
7
|
"lodash": "^4.17.21",
|
|
8
|
-
"wsemi": "^1.7.
|
|
8
|
+
"wsemi": "^1.7.47"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"w-package-tools": "^1.0.
|
|
11
|
+
"w-package-tools": "^1.0.73"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"test": "mocha --parallel --timeout 60000 --experimental-modules --es-module-specifier-resolution=node",
|