Skip to content

Commit

Permalink
feat(ui): Use set INLINE_RUNTIME_CHUNK=false&& in react build. (#1238
Browse files Browse the repository at this point in the history
)

See also https://drag13.io/posts/react-inline-runtimer-chunk/index.html. This is to make _Content-Security-Policy_ work when `unsafe-inline` is not set.

Co-authored-by: Ludovic DEHON <[email protected]>
  • Loading branch information
AdiWehrli and tchiotludo committed Nov 6, 2022
1 parent ec4acf0 commit 9325de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"build": "set INLINE_RUNTIME_CHUNK=false&& react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint src",
Expand Down

0 comments on commit 9325de2

Please sign in to comment.