rollup-plugin-styles icon indicating copy to clipboard operation
rollup-plugin-styles copied to clipboard

Is it possible to use globs to import sass files?

Open stefanobartoletti opened this issue 2 years ago • 0 comments

I'd like to use a glob to import multiple sass files into the final bundle.

As an example, if I have the following structure

style.scss
_partial-1.scss
_partial-2.scss
_partial-3.scss

I would need to import the partials individually inside style.scss, like this:

// style.scss
@import 'partial-1.scss';
@import 'partial-2.scss';
@import 'partial-3.scss';

I'd like to be able to use a single import statement with a glob, like this

// style.scss
@import '*.scss';

Is it possible to do this with this plugin?

stefanobartoletti avatar Jul 19 '22 10:07 stefanobartoletti