5

I use Syntastic to help catch my syntax errors early. It's set to also check any scss but errors for any scss files that reference variables defined in my "_variables.css.scss partial.

I'm assuming that the variables file isn't be required into the context, but works fine in the app because of the Rails asset pipeline.

I'm not sure when/where/how to do so to resolve the Syntastic errors. If I import "_varibles.css.scss" from within the scss file, errors are resolved. But is there a better way than to do this for all files w/ similar errors? Any guidance? Thanks.

Eric M.
  • 5,399
  • 6
  • 41
  • 67

1 Answers1

-1

Partials do not require the .css extension instead you can just rename it _varibles.scss

Partials should always be imported from your main scss file.

Matt
  • 1
  • 1