Warning message "No files found from the passed PurgeCSS option 'content'."
opack opened this issue ยท 4 comments
Hi!
When I use this plugin with Skeleton in a SvelteKit project, I have the following warning always appearing:
No files found from the passed PurgeCSS option 'content'.
I thought I was missing some configuration, so I went to PurgeCSS documentation and started fiddling with the content
option. Soon I realized that it only increased the output bundle size ๐
Then, I carefully read the documentation of this plugin and understood why the pluggin needed no content
option, and how it passes the data over to PurgeCSS.
If the data is passed using raw
, then it explains why this warning appear because there is a bug in PurgeCSS). The code seems to indicate this. Can you confirm that it is the case?
Thanks!
Thanks for the heads up @opack!
Interestingly, I'm only able to see this warning when I'm building a project in Windows as opposed to when I normally do so in Linux. Not sure why that's the case. But you're assumption with it being related to the raw
field is correct.
Once a fix is pushed from upstream, I'll be sure update accordingly. ๐
@AdrianGonz97 Hi! I don't know if you've seen it, but I've just been notified that the upstream bug has been fixed ๐
@AdrianGonz97 Hi! I don't know if you've seen it, but I've just been notified that the upstream bug has been fixed ๐
Yep! They finally accepted my PR after some time ๐.
However, a new release has yet to be published to npm, so we now have to wait for that.
Oh! Sorry, I didn't see it was your PR ๐