Replies: 3 comments
-
Hey ! Did you find a solution to this ? I'm trying to do the same on a gatsby website. Thanks |
Beta Was this translation helpful? Give feedback.
-
Did you import the Semantic UI css files in _app.js and the css still get purged ? If you do then u having the same problem with me, i tried to import css file from other library in node_modules but it still get purged when building the projects. I fixed with this postcss.config.js :
since i didnt use withPurgeCss so maybe the config can be a little bit difference but this may help. There is another way to do this is using cdn link to the css file. |
Beta Was this translation helpful? Give feedback.
-
Since NextJS 10 you can import css files on component level:
@Sangdt Nice approach! My solution was, since my post is already a couple months old, to move away from semantic ui. I use tailwindcss now. |
Beta Was this translation helpful? Give feedback.
-
I would like to purge my css. The problem I have is, that I use the package semantic-ui-react. Since I import the components from semantic-ui-react in my own components the purger does not know which css classnames are used.
Is it possible to build the pages and then run the css purger? With the current config a lot of css classes are missing.
Currently my next.config.js looks like this:
Beta Was this translation helpful? Give feedback.
All reactions