brunch / stylus-brunch

Adds Stylus support to Brunch
MIT License
21 stars 2 forks source link

Variables not being recognized #37

Closed igregson closed 8 years ago

igregson commented 8 years ago

Greetings,

Say I have this:

@require 'base/vars-default'

in my base app.styl file.

Every file that is required/imported after that should have access to the variables defined in vars-default.styl, correct? This isn't currently working.

I'm new to Brunch so could just be leaving off a configuration parameter or something. Do I need to specify any configuration for this to work?

Stylus is compiling just fine currently, but the variables aren't converting to their values (they're simply being passed as their raw variable names).

es128 commented 8 years ago

Not sure. This is a question for the stylus project.

igregson commented 8 years ago

Hmm... it's just that this has worked with every other method of compiling Stylus that I've used (command line, gulp, NPM, etc). That's why I opened the issue here and not directly on the main Stylus repo, as the problem seems to be localized to your package, stylus-brunch.

es128 commented 8 years ago

I don't know. Do you use any special options with those other methods?

The stylus library handles the integration of imported files on its own, this plugin does not have an impact on that.

es128 commented 8 years ago

I would guess the issue on your end may come down to something simple, like a typo

igregson commented 8 years ago

No, no special options with other methods.

Stylus is compiling the files just fine, except for variables "not working." That's the strange thing.

igregson commented 8 years ago

I'll keep troubleshooting... thanks anyways.