Skip to content

Made some small changes to enable the plugin to read CSS from subdirectories too!

Notifications You must be signed in to change notification settings

adilwali/sass_on_heroku

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Sass on Heroku

Rails plugin to compile Sass files to tmp/ and serve from there, avoiding trouble with read-only filesystems.

It will add a Rack middleware on top of your Rails app that quickly detects requests for Sass CSS files, and serve them with caching headers.

If you have issues please tell us on support.heroku.com – or just fork it :)

Some additions in this fork

This plugin wasn’t working for a scenario when you have CSS/SASS files in subdirectories. For example, if you put your SASS files within a subdirectory such as “sass/admin/style.sass”, then this plugin won’t find it.

I made some small modifications to make that possible. It was a little harder than just using the basic DIR commands to traverse the directories because Heroku seems to have some built-in security that doesn’t want you to do that. (At least not from script/console)

As such the plugin only supports going one-level-deep for SASS/CSS files, and it ignores ‘partials’ directories.

I hope this is useful to someone else!

-Adil Wali Crowd Interactive [email protected]

About

Made some small changes to enable the plugin to read CSS from subdirectories too!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%