hupe1980 / gatsby-plugin-material-ui

Gatsby plugin for Material-UI with built-in server-side rendering support
MIT License
136 stars 25 forks source link

pathToEmotionCacheProps option doesn't seem to work after build #85

Open ginokok1996 opened 2 years ago

ginokok1996 commented 2 years ago

I've set a nonce via the described emotion cache prop route. This is working just fine when developing with npm run develop.

The stylesheets are correctly receiving the nonce. But when i do a npm run build and then npm run serve the plugin doesn't seem to work anymore. My stylesheets now wont receive the nonce making my csp headers block the styling.