chore(font): enable minification (#60319)

Per @styfle suggestion, #58038 has been split into multiple PRs for
easier review.

- Enable minification of `@next/font`
- Currently, the `@next/font` is built separately (without minification)
and then copied to the `dist` folder of the Next.js.
This commit is contained in:
Sukka 2024-01-08 22:55:01 +08:00 committed by GitHub
parent 1e7e6e1c93
commit 2a2a9c70d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@
"prepublishOnly": "cd ../../ && turbo run build",
"dev": "pnpm ncc-fontkit && tsc -d -w -p tsconfig.json",
"typescript": "tsec --noEmit -p tsconfig.json",
"ncc-fontkit": "ncc build ./fontkit.js -o dist/fontkit"
"ncc-fontkit": "ncc build ./fontkit.js --minify -o dist/fontkit"
},
"devDependencies": {
"@types/fontkit": "2.0.0",