From 2a2a9c70d5c85f6519bc198709bdd713098c82de Mon Sep 17 00:00:00 2001 From: Sukka Date: Mon, 8 Jan 2024 22:55:01 +0800 Subject: [PATCH] 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. --- packages/font/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/font/package.json b/packages/font/package.json index a05e220ba535e..def31da1b8dd5 100644 --- a/packages/font/package.json +++ b/packages/font/package.json @@ -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",