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
I am using server side rendering with react and using webpack & ChunkExtractor to build cssString and html on server side. To purge unused css when using the purgeCss with html as string and css as string, i am getting 'TypeError: pattern is too long' error and my application crashed. Here is how i am using purgeCss:
Describe the bug
I am using server side rendering with react and using webpack & ChunkExtractor to build cssString and html on server side. To purge unused css when using the purgeCss with html as string and css as string, i am getting 'TypeError: pattern is too long' error and my application crashed. Here is how i am using purgeCss:
And i am supplying this purgedCssString to a template to extract the header along with all the styles in tag and footer.
To Reproduce
Supply a large html as string and css as string to purge();
Expected Behavior
It should give a cssString with all unused css removed.
Environment
node
Add any other context about the problem here
context
Code of Conduct
The text was updated successfully, but these errors were encountered: