Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stylus auto-recompiling does not support imported stylesheets. #188

Open
rzhou186 opened this issue Dec 30, 2014 · 1 comment
Open

Stylus auto-recompiling does not support imported stylesheets. #188

rzhou186 opened this issue Dec 30, 2014 · 1 comment

Comments

@rzhou186
Copy link

I am using Sinatra Assetpack alongside Ruby Stylus (i.e., I gem 'stylus', :require => 'stylus/tilt' in my Gemfile, then serve '/css', :from => 'public/styl' in my assets block).

Say I serve a stylesheet via css :main, ['/css/layouts/main.css']. Here, main.css is compiled from main.styl. When I modify any line directly within main.styl, sinatra-assetpack auto-recompiles a new version of, say, main.849289.css.

However, when I modify any stylesheet imported by main.styl (via @import), this auto-recompiling doesn't seem to take place. In other words, it seems like Sinatra Assetpack's Stylus auto-recompiling doesn't support nested stylesheets.

Any tips on how to fix this? Thanks so much!

@rzhou186 rzhou186 changed the title Stylus support does not auto-recompile stylesheets when imported spreadsheets are modified. Stylus support does not auto-recompile stylesheets when their imported spreadsheets are modified. Dec 30, 2014
@rzhou186 rzhou186 changed the title Stylus support does not auto-recompile stylesheets when their imported spreadsheets are modified. Stylus support does not auto-recompile stylesheets when their imported stylesheets are modified. Dec 30, 2014
@rzhou186 rzhou186 changed the title Stylus support does not auto-recompile stylesheets when their imported stylesheets are modified. Stylus auto-recompiling does not support nested stylesheets. Dec 30, 2014
@rzhou186
Copy link
Author

Ah, looks like this issue has cropped up before: #52, #139, #102. And that it's not just a problem with supporting Stylus, but also a problem with supporting other CSS preprocessors.

@rzhou186 rzhou186 changed the title Stylus auto-recompiling does not support nested stylesheets. Stylus auto-recompiling does not support imported stylesheets. Dec 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant