marker icon indicating copy to clipboard operation
marker copied to clipboard

Enable useStrictCSP for cssInjectedByJsPlugin

Open jsip opened this issue 7 months ago • 0 comments

Enables useStrictCSP when injecting styles. See https://github.com/marco-prontera/vite-plugin-css-injected-by-js#usestrictcsp-boolean

Does not throw any errors if meta property is not present

useStrictCSP ? `elementStyle.nonce = document.head.querySelector('meta[property=csp-nonce]')?.content;` : ''

Updated README to reflect the out of the box support

jsip avatar Dec 05 '23 21:12 jsip