Include cli.js

This commit is contained in:
Wilson Lin 2021-10-23 18:00:15 +11:00
parent e7add80c48
commit b05ea30b31
2 changed files with 7 additions and 3 deletions

View File

@ -1,9 +1,13 @@
# minify-html changelog
## 0.6.11
- Fix Node.js library not including `cli.js`.
## 0.6.10
- Fixed the Node.js library TypeScript definitions. `minifyJs` has been fixed to `minify_js` and `minifyCss` has been fixed to `minify_css`. This is not a breaking change the library itself only ever accepted the fixed names, so this is actually a typo fix.
- Implemented a basic CLI script for Node.js to allow using the library from the command line e.g. quick testing or sandboxing without needing to download and install the CLI separately. It accepts all configuration properties (all of which are currently booleans) using hyphen case e.g. `--do-not-minify-doctype`, as well as `--output [path]` and one default (i.e. not after an option switch) argument for the path to the input. It's only a few lines long and should not have a tangible effect on library size.
- Fix the Node.js library TypeScript definitions. `minifyJs` has been fixed to `minify_js` and `minifyCss` has been fixed to `minify_css`. This is not a breaking change the library itself only ever accepted the fixed names, so this is actually a typo fix.
- Implement a basic CLI script for Node.js to allow using the library from the command line e.g. quick testing or sandboxing without needing to download and install the CLI separately. It accepts all configuration properties (all of which are currently booleans) using hyphen case e.g. `--do-not-minify-doctype`, as well as `--output [path]` and one default (i.e. not after an option switch) argument for the path to the input. It's only a few lines long and should not have a tangible effect on library size.
## 0.6.9

View File

@ -4,7 +4,7 @@ const common = {
version: "0.6.10",
main: "index.node",
types: "index.d.ts",
files: ["postinstall.js", "index.d.ts"],
files: ["cli.js", "postinstall.js", "index.d.ts"],
scripts: {
build: "node-gyp build && shx mv build/Release/index.node index.node",
clean: