bf8ee1edb4
For some context: [https://vercel.slack.com/archives/CGU8HUTUH/p1662124179102509](https://vercel.slack.com/archives/CGU8HUTUH/p1662124179102509) Continuation of #40221 and #40227 Adds `experimental.fontLoaders`. SWC next-font-loaders (#40221) transforms font loader (e.g. #40227) call expressions into an import with the function call arguments as a query. The imports will be matched by `next-font-loader`. It runs the configured font loaders - emits font files and returns CSS. Exports are added, and the font-family is made locally scoped. The returned CSS is turned into a CSS module with `css-loader` which lets you consume the font-family. `FontLoaderManifestPlugin` creates a manifest of the preloaded font files for each entrypoint. Preload/preconnect are then added in `_document.tsx` if any font files were found for that path. Co-authored-by: JJ Kasper <jj@jjsweb.site> |
||
---|---|---|
.. | ||
terser-webpack-plugin | ||
wellknown-errors-plugin | ||
app-build-manifest-plugin.ts | ||
build-manifest-plugin.ts | ||
copy-file-plugin.ts | ||
css-minimizer-plugin.ts | ||
flight-client-entry-plugin.ts | ||
flight-manifest-plugin.ts | ||
font-loader-manifest-plugin.ts | ||
font-stylesheet-gathering-plugin.ts | ||
jsconfig-paths-plugin.ts | ||
middleware-plugin.ts | ||
mini-css-extract-plugin.ts | ||
next-drop-client-page-plugin.ts | ||
next-trace-entrypoints-plugin.ts | ||
nextjs-require-cache-hot-reloader.ts | ||
pages-manifest-plugin.ts | ||
profiling-plugin.ts | ||
react-loadable-plugin.ts | ||
serverless-plugin.ts | ||
subresource-integrity-plugin.ts | ||
telemetry-plugin.ts |