I want to use hugo pipes with purgecss to remove unused css. However, I have a problem doing so. I installed
@fullhuman/postcss-purgecss and setup my postcss config to only load it on production runs. But when I try to test it, I get the following error:
Error: Error building site: POSTCSS: failed to transform "css/main.min.css" (text/css): Error: [object Object] is not a PostCSS plugin
Has someone achieved to use this within hugo and can help me? I’m not sure where the error is so this might not be related to hugo at all, then I’ll try making an issue on github for the plugin itself.
Thanks in advance