From 56310814ba92f2839c2f2fea83d7c7ef58b61cc7 Mon Sep 17 00:00:00 2001 From: edward Date: Fri, 5 Jan 2018 17:55:18 +0800 Subject: [PATCH] buildSDK/less-bootstrap-compiler.php --- buildSDK/less-bootstrap-compiler.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/buildSDK/less-bootstrap-compiler.php b/buildSDK/less-bootstrap-compiler.php index ed9d3b1167..60cefbe276 100644 --- a/buildSDK/less-bootstrap-compiler.php +++ b/buildSDK/less-bootstrap-compiler.php @@ -40,13 +40,26 @@ foreach ($files as $src => $file){ continue; } - $variable = "{$file['baseDir']}/{$file['sourceMapRootpath']}variables.less"; + $dir = "{$file['baseDir']}/{$file['sourceMapRootpath']}"; - if(filemtime($variable) > filemtime($css)){ + if(filemtime("{$dir}variables.less") > filemtime($css)){ continue; } - + foreach(scandir($dir) as $f) { + + if (!strlen($f) || $f[0] == '.') { + continue; + } + + $less = "{$d}/{$f}"; + + if(file_exists($less) && filemtime($less) > filemtime($css)){ + $isLatest = false; + break; + } + + } -- 2.39.2