Compile Sass file in directory to separate CSS files


We are creating Gutenberg blocks and we want to have separate CSS for each block.
But we don’t want to add for each block a separate entry in config.json.
Is it possible to just at one entry with some wildcard notations so that webpack will iterate through given directory and output each file to a separate CSS file.

Looking forward to hear from you.


This topic was automatically closed after 42 days. New replies are no longer allowed.