0

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?

TylerH
  • 20,799
  • 66
  • 75
  • 101
Clite Tailor
  • 438
  • 5
  • 14

1 Answers1

1

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

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

Then, it works!

Clite Tailor
  • 438
  • 5
  • 14