markstory / asset_compress

An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.
MIT License
370 stars 125 forks source link

Issue #329 -- Editing a SASS partial in v0.20 does not trigger the ou… #331

Closed sprak3000 closed 5 years ago

sprak3000 commented 5 years ago

…tput CSS file to be regenerated when "always enable controller" is false

Alter the isFresh() method to detect a SASS or LESS file being processed. If one of those types, get the file contents and check for any import statements. If any import statements, check the freshness of those files.

Kept it at one level of import checking. Not sure how common nesting imports is. I'm not familiar enough with LESS or have an environment to test that code path, but the SASS path works in my local environment.