rsnext/packages/next/build/webpack/plugins
Wyatt Johnson c6ef857d57
Subresource Integrity for App Directory (#39729)
<!--
Thanks for opening a PR! Your contribution is much appreciated.
In order to make sure your PR is handled as smoothly as possible we
request that you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

This serves to add support for [Subresource
Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)
hashes for scripts added from the new app directory. This also has
support for utilizing nonce values passed from request headers (expected
to be generated per request in middleware) in the bootstrapping scripts
via the `Content-Security-Policy` header as such:

```
Content-Security-Policy: script-src 'nonce-2726c7f26c'
```

Which results in the inline scripts having a new `nonce` attribute hash
added. These features combined support for setting an aggressive Content
Security Policy on scripts loaded.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [x] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
- [x] The examples guidelines are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)

Co-authored-by: Steven <steven@ceriously.com>
2022-09-08 15:17:15 -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 Handle edge runtime for app (#39910) 2022-08-24 14:49:47 -05:00
flight-manifest-plugin.ts Fix flight manifest to include all chunks (#40365) 2022-09-08 19:09:33 +00:00
font-stylesheet-gathering-plugin.ts Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00: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 Subresource Integrity for App Directory (#39729) 2022-09-08 15:17:15 -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