mirror of
https://github.com/wled/WLED.git
synced 2025-04-25 07:17:18 +00:00
Rebuild if command line argument is set
This commit is contained in:
parent
0a9145cd3c
commit
21de9e938a
@ -44,6 +44,10 @@ function saveCache(file) {
|
||||
}
|
||||
|
||||
function isCached(file) {
|
||||
// If command line argument is set, always rebuild
|
||||
if (process.argv[2] == "--force" || process.argv[2] == "-f") {
|
||||
return false;
|
||||
}
|
||||
const stat = fs.statSync(file);
|
||||
const cached = cache[file];
|
||||
if (cached && cached.mtime >= stat.mtimeMs && cached.size == stat.size) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user