Skip to content
Discussion options

You must be logged in to vote

Thanks for the detailed explanation and raise, a few thoughts:

  1. It's by design: Rsbuild currently does not inject a nonce into <link rel="stylesheet">. From what I understand, nonce is used for inline scripts and styles, see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/nonce#description
    2 For webpack_nonce , your approach is valid — setting window.webpackNonce in the HTML and then assigning __webpack_nonce__ in entry is a good workaround.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@auloin
Comment options

Answer selected by auloin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants