Class | Sass::Plugin::StalenessChecker |
In: |
lib/sass/plugin/staleness_checker.rb
|
Parent: | Object |
The class handles `.s[ca]ss` file staleness checks via their mtime timestamps.
To speed things up two level of caches are employed:
Usage:
DELETED | = | 1.0/0.0 |
dependencies_cache | [RW] | @private |
Returns whether or not a given CSS file is out of date and needs to be regenerated.
The distinction between this method and the instance-level \{stylesheet_needs_update?} is that the instance method preserves mtime and stale-dependency caches, so it‘s better to use when checking multiple stylesheets at once.
@param css_file [String] The location of the CSS file to check. @param template_file [String] The location of the Sass or SCSS template
that is compiled to `css_file`.