I’m very excited about Hugo Pipes, as I have a GulpJS workflow at the moment that does very simple PostCSS processing, minification and image optimisation.
The one thing I’m not sure that you can do yet is globbing, the ability to match sets of filenames with a wildcard, eg:
They can, but only for assets inside bundles in /content. We have scetched out a resources.Match func, too, what will take wildcards, but that is not implemented …
That would be super cool, I didn’t realise there was such a module for PostCSS (I just use really basic functionality). Would mean I could ditch the separate Gulp task, which would be neater and fasterer.
@growdigital WIP is here https://github.com/adrinux/Pippy
But it’s non functional for me at present - even just using postcss-cli in a shell returns "Plugin Error: Cannot find module ‘postcss-import’’ so problem is with node and node_modules rather than hugo. Works running from gulp in another project
@growdigital Sorted. Apparently I a wrote @include instead of @import
I’m blaming vscode
Now it cant find the imports when run via hugo, but can on cli…