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.
@@ -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
  ![language](https://img.shields.io/badge/language-JavaScript-orange.svg)
5
5
  [![npm version](http://img.shields.io/npm/v/w-data-html-minify.svg?style=flat)](https://npmjs.org/package/w-data-html-minify)
6
6
  [![license](https://img.shields.io/npm/l/w-data-html-minify.svg?style=flat)](https://npmjs.org/package/w-data-html-minify)
7
- [![gzip file size](http://img.badgesize.io/yuda-lyu/w-data-html-minify/master/dist/w-data-html-minify.umd.js.svg?compression=gzip)](https://github.com/yuda-lyu/w-data-html-minify)
8
7
  [![npm download](https://img.shields.io/npm/dt/w-data-html-minify.svg)](https://npmjs.org/package/w-data-html-minify)
9
8
  [![npm download](https://img.shields.io/npm/dm/w-data-html-minify.svg)](https://npmjs.org/package/w-data-html-minify)
10
9
  [![jsdelivr download](https://img.shields.io/jsdelivr/npm/hm/w-data-html-minify.svg)](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
- [Necessary] Add script for w-data-html-minify.
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.6/dist/w-data-html-minify.umd.js"></script>
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-proposal-nullish-coalescing-operator',
13
- '@babel/plugin-proposal-optional-chaining'
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
  }