w-data-html-minify 1.0.6 → 1.0.8
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/.github/workflows/ci-test.yml +24 -0
- package/README.md +3 -5
- package/babel.config.js +4 -3
- package/dist/w-data-html-minify.umd.js +2 -2
- package/dist/w-data-html-minify.umd.js.map +1 -1
- package/docs/WDataHtmlMinify.mjs.html +1 -1
- package/docs/examples/ex-html-minify.html +1 -1
- package/docs/global.html +1 -1
- package/docs/importHtmlminify.mjs.html +1 -1
- package/docs/index.html +1 -1
- package/{g.test.minify.mjs → g.mjs} +1 -1
- package/package.json +4 -4
- package/script.txt +20 -0
- package/src/_convertHtmlminifierCode.mjs +1 -1
- package/src/_importHtmlminifierNode.mjs +1 -1
- package/test/{all.test.mjs → minify.test.mjs} +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: Node.js CI
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
|
|
10
|
+
strategy:
|
|
11
|
+
matrix:
|
|
12
|
+
node-version: [24.x]
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
17
|
+
uses: actions/setup-node@v4
|
|
18
|
+
with:
|
|
19
|
+
node-version: ${{ matrix.node-version }}
|
|
20
|
+
- run: npm cache clean -f
|
|
21
|
+
- run: npm install
|
|
22
|
+
- run: npm test
|
|
23
|
+
env:
|
|
24
|
+
CI: true
|
package/README.md
CHANGED
|
@@ -4,7 +4,6 @@ A tool for minify html.
|
|
|
4
4
|

|
|
5
5
|
[](https://npmjs.org/package/w-data-html-minify)
|
|
6
6
|
[](https://npmjs.org/package/w-data-html-minify)
|
|
7
|
-
[](https://github.com/yuda-lyu/w-data-html-minify)
|
|
8
7
|
[](https://npmjs.org/package/w-data-html-minify)
|
|
9
8
|
[](https://npmjs.org/package/w-data-html-minify)
|
|
10
9
|
[](https://www.jsdelivr.com/package/npm/w-data-html-minify)
|
|
@@ -13,8 +12,8 @@ A tool for minify html.
|
|
|
13
12
|
To view documentation or get support, visit [docs](https://yuda-lyu.github.io/w-data-html-minify/global.html).
|
|
14
13
|
|
|
15
14
|
## Installation
|
|
15
|
+
|
|
16
16
|
### Using npm(ES6 module):
|
|
17
|
-
> **Note:** w-data-html-minify is mainly dependent on `html-minifier`.
|
|
18
17
|
```alias
|
|
19
18
|
npm i w-data-html-minify
|
|
20
19
|
```
|
|
@@ -38,11 +37,10 @@ console.log(hout)
|
|
|
38
37
|
```
|
|
39
38
|
|
|
40
39
|
### In a browser(UMD module):
|
|
41
|
-
> **Note:** w-data-html-minify does not dependent on any package.
|
|
42
40
|
|
|
43
|
-
|
|
41
|
+
Add script for w-data-html-minify.
|
|
44
42
|
```alias
|
|
45
|
-
<script src="https://cdn.jsdelivr.net/npm/w-data-html-minify@1.0.
|
|
43
|
+
<script src="https://cdn.jsdelivr.net/npm/w-data-html-minify@1.0.8/dist/w-data-html-minify.umd.js"></script>
|
|
46
44
|
```
|
|
47
45
|
|
|
48
46
|
> **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)]
|
package/babel.config.js
CHANGED
|
@@ -7,9 +7,10 @@ module.exports = {
|
|
|
7
7
|
],
|
|
8
8
|
'plugins': [
|
|
9
9
|
'@babel/plugin-transform-runtime',
|
|
10
|
-
'@babel/plugin-syntax-import-assertions',
|
|
11
10
|
'@babel/plugin-proposal-export-default-from',
|
|
12
|
-
'@babel/plugin-
|
|
13
|
-
'@babel/plugin-proposal-
|
|
11
|
+
// '@babel/plugin-syntax-import-assertions', //已被棄用
|
|
12
|
+
// '@babel/plugin-proposal-nullish-coalescing-operator', //browser與nodejs已支援
|
|
13
|
+
// '@babel/plugin-proposal-object-rest-spread', //browser與nodejs已支援
|
|
14
|
+
// '@babel/plugin-proposal-optional-chaining', //browser與nodejs已支援
|
|
14
15
|
]
|
|
15
16
|
}
|