1

I have a Sinatra app with an application.scss file which @imports all of the rest of the app's SCSS files. It uses the Sinatra asset pack. In the layout.erb file I have:

 <%= css :application %>

Sinatra changes the URL of the compiled CSS file every time the application.scss file changes. Unfortunately, it doesn't exhibit this cache-busting behavior when any of the @imported files change. Is there a way to fix this in Sinatra?

Gil Birman
  • 35,242
  • 14
  • 75
  • 119
  • Same issue seems to exist for Stylus CSS preprocessor Stylus. – ryzh Dec 30 '14 at 19:23
  • I actually fixed this by monkey-patching sinatra. However, if I was going to use sinatra again I probably wouldn't use the Asset Pack at all and handle compilation with gulp. – Gil Birman Dec 30 '14 at 22:49

0 Answers0