Skip to content

Commit

Permalink
feat: v2 support ES Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
kekee000 committed Nov 22, 2024
1 parent 9bd9b08 commit 1fc536c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@
$ npm install --save fontmin
```

### Notice

**fontmin v2.x only support ES Modules, and run on Node v16+.**

If you need to use CommonJS version, please install `fontmin v1.x`:

> npm install --save fontmin@1
## Usage

```js
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fontmin",
"version": "1.1.0",
"version": "2.0.0",
"description": "Minify font seamlessly, font subsetter, webfont (eot, woff, svg) converter.",
"type": "module",
"main": "index.js",
Expand Down Expand Up @@ -32,7 +32,7 @@
"license": "MIT",
"repository": "ecomfe/fontmin",
"engines": {
"node": ">=18"
"node": ">=16"
},
"bin": {
"fontmin": "cli.js"
Expand Down

0 comments on commit 1fc536c

Please sign in to comment.