Add next font package (#40227)
For some context: https://vercel.slack.com/archives/CGU8HUTUH/p1662124179102509 Adds `@next/font` package. `scripts/update-google-fonts.js` generates functions and metadata for all available google fonts. The metadata is used in `loader.ts` to validate font options (from #40221). It then fetches the CSS from google fonts, downloads the font files and emits them as static assets. The actual integration with `packages/next` and integration tests depends on #40221, will follow up with new PR. Co-authored-by:JJ Kasper <jj@jjsweb.site>
Showing
| ... | ... | @@ -63,6 +63,7 @@ |
| "@next/bundle-analyzer": "workspace:*", | ||
| "@next/env": "workspace:*", | ||
| "@next/eslint-plugin-next": "workspace:*", | ||
| "@next/font": "workspace:*", | ||
| "@next/mdx": "workspace:*", | ||
| "@next/plugin-storybook": "workspace:*", | ||
| "@next/polyfill-module": "workspace:*", | ||
| ... | ... |
packages/font/README.md
0 → 100644
packages/font/package.json
0 → 100644
This diff is collapsed.
This diff is collapsed.
packages/font/tsconfig.json
0 → 100644
This diff is collapsed.
Please
register
or
sign in
to comment