ai generated solutions to our ai generated problems
This commit is contained in:
+1
-1
@@ -356,7 +356,7 @@ function validateBuiltDist() {
|
||||
|
||||
const html = fs.readFileSync(indexPath, 'utf8')
|
||||
if (/\sintegrity=(["'])sha(?:256|384|512)-[^"']+\1/i.test(html)) {
|
||||
throw new Error('Frontend build contains integrity attributes that may not match the obfuscated assets')
|
||||
throw new Error('Frontend build contains unsupported integrity attributes')
|
||||
}
|
||||
|
||||
const assetPaths = [...html.matchAll(/(?:src|href)=(["'])\/(assets\/[^"']+)\1/g)]
|
||||
|
||||
Reference in New Issue
Block a user