Open rzhou186 opened 9 years ago
Ah, looks like this issue has cropped up before: https://github.com/rstacruz/sinatra-assetpack/issues/52, https://github.com/rstacruz/sinatra-assetpack/issues/139, https://github.com/rstacruz/sinatra-assetpack/issues/102. And that it's not just a problem with supporting Stylus, but also a problem with supporting other CSS preprocessors.
I am using Sinatra Assetpack alongside Ruby Stylus (i.e., I
gem 'stylus', :require => 'stylus/tilt'
in myGemfile
, thenserve '/css', :from => 'public/styl'
in myassets
block).Say I serve a stylesheet via
css :main, ['/css/layouts/main.css']
. Here,main.css
is compiled frommain.styl
. When I modify any line directly withinmain.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!