mirror of https://github.com/curbengh/hexo-yam
docs: install zstd dependency explicitly
using --force --include=optional flags are excessive This reverts commite33fd0ed5d
&1b04f7c8f1
.
This commit is contained in:
parent
1c9d91b524
commit
30c33c0ad3
|
@ -23,7 +23,11 @@ jobs:
|
|||
key: ${{ runner.os }}-npm-cache
|
||||
restore-keys: ${{ runner.os }}-npm-cache
|
||||
- name: Install Dependencies
|
||||
run: npm install --include=optional
|
||||
run: |
|
||||
npm install
|
||||
npm install @mongodb-js/zstd-linux-x64-musl \
|
||||
@mongodb-js/zstd-win32-x64-msvc \
|
||||
@mongodb-js/zstd-darwin-arm64
|
||||
- name: Test
|
||||
run: npm run test
|
||||
env:
|
||||
|
|
12
README.md
12
README.md
|
@ -26,7 +26,7 @@ Yet Another Minifier for Hexo. Minify HTML, JS, CSS, SVG, XML and JSON. Compress
|
|||
## Installation
|
||||
|
||||
```bash
|
||||
$ npm install hexo-yam --save --include=optional --force
|
||||
$ npm install --save hexo-yam
|
||||
```
|
||||
|
||||
## Options
|
||||
|
@ -270,7 +270,15 @@ minify:
|
|||
|
||||
### Cannot find module '@mongodb-js/zstd-linux-x64-gnu'
|
||||
|
||||
`npm install --include=optional --force`
|
||||
`npm install --save @mongodb-js/zstd-linux-x64-gnu`
|
||||
|
||||
- @mongodb-js/zstd-darwin-arm64 (Apple Silicon)
|
||||
- @mongodb-js/zstd-darwin-x64 (Intel Mac)
|
||||
- @mongodb-js/zstd-linux-arm64-gnu
|
||||
- @mongodb-js/zstd-linux-arm64-musl (Alpine)
|
||||
- @mongodb-js/zstd-linux-x64-gnu
|
||||
- @mongodb-js/zstd-linux-x64-musl (Alpine)
|
||||
- @mongodb-js/zstd-win32-x64-msvc
|
||||
|
||||
## Globbing
|
||||
|
||||
|
|
Loading…
Reference in New Issue