Clite Tailor
Clite Tailor

Reputation: 464

Import all stylus files in the same folder

Currently i want to import all stylus file in /src folder, so i want put a stylus file

- src
| + index.styl

And put something into it like this:

@import '*./styl'

But you know, it will recursively import itself, too. So how to avoid this?

Upvotes: 0

Views: 492

Answers (1)

Clite Tailor
Clite Tailor

Reputation: 464

Ok, i've just found solution myself following this answer. I do something like this:

@import './!(index)*.styl'

Then, it works!

Upvotes: 2

Related Questions