You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ This `CspHtmlWebpackPlugin` accepts 2 params with the following structure:
41
41
-`{string}` hashingMethod - accepts 'sha256', 'sha384', 'sha512' - your node version must also accept this hashing method.
42
42
-`{object}` hashEnabled - a `<string, boolean>` entry for which policy rules are allowed to include hashes
43
43
-`{object}` nonceEnabled - a `<string, boolean>` entry for which policy rules are allowed to include nonces
44
+
-`{Function}` output (optional) - optional callback function receiving the computed CSP policy to implement custom logic instead of including meta tag.
44
45
45
46
The plugin also adds a new config option onto each `HtmlWebpackPlugin` instance:
0 commit comments