This commit is contained in:
Kieran 2023-07-04 18:28:35 +01:00
parent 7eeec29beb
commit 15e47bde86
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
3 changed files with 8 additions and 3 deletions

2
_headers Normal file
View File

@ -0,0 +1,2 @@
/*
Content-Security-Policy: default-src 'self'; manifest-src *; child-src 'none'; worker-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; connect-src *; img-src * data: blob:; font-src https://fonts.gstatic.com; media-src * blob:; script-src 'self';

View File

@ -42,9 +42,11 @@
}, },
"browserslist": { "browserslist": {
"production": [ "production": [
">0.2%", "chrome >= 67",
"not dead", "edge >= 79",
"not op_mini all" "firefox >= 68",
"opera >= 54",
"safari >= 14"
], ],
"development": [ "development": [
"last 1 chrome version", "last 1 chrome version",

View File

@ -38,6 +38,7 @@ const config = {
patterns: [ patterns: [
{ from: "public/manifest.json" }, { from: "public/manifest.json" },
{ from: "public/robots.txt" }, { from: "public/robots.txt" },
{ from: "_headers" },
], ],
}), }),
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({