-
Notifications
You must be signed in to change notification settings - Fork 15
feature: show rejected #57
Comments
I think it could collide with other plugins that control the output of the console but you could try doing this by adding a line under: https://github.com/FullHuman/purgecss-webpack-plugin/blob/master/src/index.js#L103 if (purgecss.rejected) {
console.log(purgecss.rejected)
} and see what happens, It would be awesome if you had the time to make a PR |
@jsnanigans ok, I've submitted a PR for this! First I also thought about just adding a Would you take a look and let me know what you think? |
Poke @jsnanigans Have you had time to take a look? |
Thanks @SassNinja for your contribution! |
I do appreciate a lot your work on this matter. How do I access the rejected styles?
I call the build script with --profile --json compilation-stats.json flag. But compilation-stats.json contains just I noticed that compilation-stats holds the console output. I am able to access the purged styles printing them in purgecss-webpack-plugin.js by calling: |
@realgs I am also having trouble finding the purged selectors. Could you share where you log |
@JustJarethB as I wrote above- in purgecss-webpack-plugin.js
|
+1 @realgs that's great, thanks for the temp fix. Is @SassNinja able to assist us understand how to get the data out properly? Personally, I have tried both on v1.4.0 and v1.5.0 |
I'm trying to reduce the CSS size as much a possible.
Unfortunately the plugin removes too much CSS. Therefore I'd like to see what got removed to add some of it to the whitelist.
I've seen purgecss offers an option called
rejected
which seems to do exactly this. After some debugging I noticed that the option gets piped through by the webpack plugin but the plugin doesn't reveal the response of purgecss but only cares about the extracted CSS.What do you think about adding proper support of the
rejected
option to the webpack plugin?The text was updated successfully, but these errors were encountered: