Open danhuang1202 opened 1 year ago
Get nonce attribute from __webpack_nonce__ and set this attribute to style tag
__webpack_nonce__
fix: https://github.com/Anidetrix/rollup-plugin-styles/issues/215
Hi @Anidetrix, this PR trying to add nonce attribute to style tag, so the style-src rule in CSP can get rid of the 'unsafe-inline' value. Please help review this PR, thanks.
Get nonce attribute from
__webpack_nonce__
and set this attribute to style tagfix: https://github.com/Anidetrix/rollup-plugin-styles/issues/215