Skip to content

Commit

Permalink
chore(font): enable minification (vercel#60319)
Browse files Browse the repository at this point in the history
Per @styfle suggestion, vercel#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.
  • Loading branch information
SukkaW committed Jan 8, 2024
1 parent 1e7e6e1 commit 2a2a9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/font/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2a2a9c7

Please sign in to comment.