fix(security): allow more strict CSP for SVG assets (#9209)

Refs #7540
This commit is contained in:
Vladimír Gorej
2023-09-14 12:34:13 +02:00
committed by GitHub
parent efe613322d
commit b7f533174a
8 changed files with 605 additions and 62 deletions

View File

@@ -89,7 +89,11 @@ const devConfig = configBuilder(
type: "asset/source",
},
{
test: /\.(png|jpg|jpeg|gif|svg)$/,
test: /\.svg$/,
use: ["@svgr/webpack"],
},
{
test: /\.(png|jpg|jpeg|gif)$/,
type: "asset/inline",
},
],