tonistiigi / styler

CSS/Stylus live editor
MIT License
134 stars 9 forks source link

stylus @import path #12

Open groner opened 12 years ago

groner commented 12 years ago

This is sort of a support request, but there may be a bug or a feature request in here.

I'm converting a project that uses less to stylus so I can try styler. I have all my stylus files under one directory in a tree that's two layers deep. This directory is the search path I've configured for stylus, it's also the path I've added to styler.

app/css/
  editor/
    editor.styl
    procedures.styl

So, editor/editor.styl contains @import "editor/procedures".

stylus builds this ok and I load css/editor/editor.css in my html.

When editing editor/editor.styl, styler reports "failed to locate @import file editor/procedures" (I tried with and without the .styl extension).

tonistiigi commented 12 years ago

But when you just call @import procedures then it works, right?

I guess there could be some kind of "Stylus settings" pane on the project creation where you could add these lookup paths and plugins. And maybe sometimes in the future you could even pick stylus/nib version for your project there.