security.sri
- Type
- Default:
undefined
Adding an integrity attribute to <script> and <link rel="stylesheet"> tags introduced by HTML allows the browser to verify the integrity of the introduced resource, thus preventing tampering with the downloaded resource.
Info
For a specific introduction to SRI, you can refer to Rsbuild security.sri.
This configuration type is not completely consistent with Rsbuild and will be automatically converted during the build process.