mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Compile LESS/SCSS again if variables change
This commit is contained in:
parent
a7f0ba1964
commit
67cc7d3d00
2 changed files with 13 additions and 10 deletions
|
|
@ -268,7 +268,7 @@ class FrontEndFileHandler extends Handler
|
|||
}
|
||||
|
||||
$compiledFileName = $file->fileName . ($minify ? '.min' : '') . '.css';
|
||||
$compiledFileHash = ltrim(str_replace(array('/', '\\'), '.', substr($file->fileRealPath, strlen(\RX_BASEDIR))), '.');
|
||||
$compiledFileHash = sha1($file->fileRealPath . ':' . serialize($vars));
|
||||
$compiledFilePath = \RX_BASEDIR . self::$assetdir . '/compiled/' . $compiledFileHash . '.' . $compiledFileName;
|
||||
|
||||
if (!file_exists($compiledFilePath) || filemtime($compiledFilePath) < filemtime($file->fileFullPath))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue