# Compile Sass file in directory to separate CSS files

**URL:** https://discourse.roots.io/t/compile-sass-file-in-directory-to-separate-css-files/18956
**Category:** sage
**Tags:** sage9
**Created:** 2020-08-25T12:57:23Z
**Posts:** 1

## Post 1 by @Redmatters_Digital — 2020-08-25T12:57:24Z

Hi,

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.

Greetz

---

## Post 2 by @system — 2020-10-06T13:09:55Z

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