rsnext/packages/next/build/webpack/plugins
Hannes Bornö bf8ee1edb4
Add support for font loaders (#40746)
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>
2022-09-21 22:12:59 -07:00
..
terser-webpack-plugin Set swcMinify as an attribute on terser-webpack-plugin-optimize span (#37416) 2022-06-06 15:09:33 +00:00
wellknown-errors-plugin Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00:00
app-build-manifest-plugin.ts Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00:00
build-manifest-plugin.ts App Build Stats (#38884) 2022-08-10 19:31:01 +00:00
copy-file-plugin.ts use loader-utils 2 for resolve-url-loader to fix ./data: urls in sass (#31134) 2021-11-08 18:37:25 +00:00
css-minimizer-plugin.ts Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00:00
flight-client-entry-plugin.ts Improved bundling strategy for the server graph (#40739) 2022-09-21 20:45:33 +02:00
flight-manifest-plugin.ts Use resolved url in flight entry loader (#40697) 2022-09-20 10:40:27 +00:00
font-loader-manifest-plugin.ts Add support for font loaders (#40746) 2022-09-21 22:12:59 -07:00
font-stylesheet-gathering-plugin.ts Adding experimentalAdjustFallback feature to font optimization (#40185) 2022-09-16 14:13:21 -07:00
jsconfig-paths-plugin.ts Add handling for auto installing TypeScript deps and HMRing tsconfig (#39838) 2022-08-23 13:16:47 -05:00
middleware-plugin.ts Add support for font loaders (#40746) 2022-09-21 22:12:59 -07:00
mini-css-extract-plugin.ts use official mini-css-extract-plugin and experimentalUseImportModule (#24573) 2021-05-12 16:04:01 +00:00
next-drop-client-page-plugin.ts Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00:00
next-trace-entrypoints-plugin.ts Use realpath when emitting traced package.json (#39683) 2022-08-18 17:07:34 +01:00
nextjs-require-cache-hot-reloader.ts Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00:00
pages-manifest-plugin.ts Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00:00
profiling-plugin.ts Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00:00
react-loadable-plugin.ts Bypass empty pages folder for layouts (#40132) 2022-09-03 00:13:47 +00:00
serverless-plugin.ts update serverless plugin to use webpack 5 apis (#31058) 2021-11-06 01:19:25 +01:00
subresource-integrity-plugin.ts Subresource Integrity for App Directory (#39729) 2022-09-08 15:17:15 -07:00
telemetry-plugin.ts Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00:00