wycats / rake-pipeline-web-filters

MIT License
116 stars 36 forks source link

compass is required even if not using SassCompiler #4

Closed jamesarosen closed 12 years ago

jamesarosen commented 12 years ago

lib/rake-pipeline-web-filters.rb does a require "rake-pipeline-web-filters/sass_compiler" and that in turn does a require "compass". Thus, simply requiring the library requires Compass, even if the user isn't using the SassCompiler at all. Some options:

  1. force the user to require each filter individually
  2. use autoload
  3. move the require "compass" into the intitializer and raise a meaningful error if it's unavailable

(1) is frustrating. (2) feels icky. How would (3) work in multi-threaded environments?