fix(react): fix(react): fix missing integrity tags in production builds (#10949)

Subresource Integrity attributes were not generated on production react builds
due to a missing
option pass through when writing the index file.
ISSUES CLOSED: #10926
This commit is contained in:
Edd 2022-08-24 17:05:18 +00:00 committed by GitHub
parent e20ff68d45
commit 36a72c7303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,6 +228,7 @@ export async function* run(
if (options.generateIndexHtml) {
await writeIndexHtml({
crossOrigin: options.crossOrigin,
sri: options.subresourceIntegrity,
outputPath: join(options.outputPath, basename(options.index)),
indexPath: join(context.root, options.index),
files: emittedFiles1.filter((x) => x.extension === '.css'),