projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
789d334
)
buildSDK/less-bootstrap-compiler.php
author
edward
<edward@roojs.com>
Fri, 5 Jan 2018 09:55:18 +0000
(17:55 +0800)
committer
edward
<edward@roojs.com>
Fri, 5 Jan 2018 09:55:18 +0000
(17:55 +0800)
buildSDK/less-bootstrap-compiler.php
patch
|
blob
|
history
diff --git
a/buildSDK/less-bootstrap-compiler.php
b/buildSDK/less-bootstrap-compiler.php
index
ed9d3b1
..
60cefbe
100644
(file)
--- a/
buildSDK/less-bootstrap-compiler.php
+++ b/
buildSDK/less-bootstrap-compiler.php
@@
-40,13
+40,26
@@
foreach ($files as $src => $file){
continue;
}
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;
}
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;
+ }
+
+ }