Anidetrix / rollup-plugin-styles

🎨 Universal Rollup plugin for styles: PostCSS, Sass, Less, Stylus and more.
https://anidetrix.github.io/rollup-plugin-styles
MIT License
246 stars 42 forks source link

Is it possible to use globs to import sass files? #219

Open stefanobartoletti opened 2 years ago

stefanobartoletti commented 2 years ago

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?