Unverified Commit 2a2a9c70 authored by Sukka's avatar Sukka Committed by GitHub

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.
parent 1e7e6e1c
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"prepublishOnly": "cd ../../ && turbo run build", "prepublishOnly": "cd ../../ && turbo run build",
"dev": "pnpm ncc-fontkit && tsc -d -w -p tsconfig.json", "dev": "pnpm ncc-fontkit && tsc -d -w -p tsconfig.json",
"typescript": "tsec --noEmit -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": { "devDependencies": {
"@types/fontkit": "2.0.0", "@types/fontkit": "2.0.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment