-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combine with purgecss #28
Comments
Thanks for filing @technic! The success of this depends a lot on how the CSS removal plugin works and at what stages specifically it replaces the webpack asset so that fontmin-webpack can see the minified version. I originally wrote nukecss-webpack for this purpose so I could control it carefully. It looks like |
Hi, great. Thanks for quick answer. |
Mainly just ensuring all the existing tests continue to work as expected and add one for purgecss plugin with a parallel config. |
Hi,
Thanks a lot for this cool plugin!
I am trying to understand what is the order of css plugins and how to customize it. What I want to achieve is to apply
fontmin
afterpurgecss
. (https://purgecss.com/plugins/webpack.html)I use font-awesome, and import it to css. The webpack outputs very small and lightweight css file, where only few icons are present.
However fontmin still includes all icons in the font. After small debugging I put the following line in the source code
What I see is that the source code that
fontmin
sees the unporcessed css file, it is minified but not purged. And includes all icons.If I replace my original css file with the postporcess one, which has only limited number of icons, then fontmin works as expected and cuts the web font files significanlty.
The text was updated successfully, but these errors were encountered: