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:
parent
e20ff68d45
commit
36a72c7303
@ -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'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user