Skip to content

Less/SCSS files which are combined are incorrectly calculated by Contao: Changes in sub-Files are not recognized. This script checks the filetime of the sub-Files and corrects the filetime of the app.less/scss

Notifications You must be signed in to change notification settings

Xendiadyon/contao-combiner-refresh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

contao-combiner-refresh

Less/SCSS files which are combined are incorrectly calculated by Contao: Changes in sub-Files are not recognized. This script checks the filetime of the sub-Files in the folder and corrects the filetime of the parent app.less/scss

Therefore, the checkmodified.php is placed into the main less/scss directory (e.g., files/layout/scss/) where also the app.less/scss file lies.

Then, a line with the correct (relative or absolute) path to checkmodified.php is added in system/config/initconfig.php to process this file on every page load during Contao initialization:

// Check if we have modified sub-less/scss-files. If so, modify the parent less/scss-file so that a new complete less/scss.css-file can be generated
$checkmodified = "../files/layout/scss/checkmodified.php"; if (file_exists($checkmodified)) include_once($checkmodified);

About

Less/SCSS files which are combined are incorrectly calculated by Contao: Changes in sub-Files are not recognized. This script checks the filetime of the sub-Files and corrects the filetime of the app.less/scss

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages