Signed-off-by: unknown <lizhouze@huawei.com>
This commit is contained in:
unknown 2022-11-22 17:56:04 +08:00
parent 7e140945f8
commit 50f0611778

View File

@ -587,6 +587,8 @@ function addPreviewCSS(importPath, resourcePath) {
content[importPath].push(...content[resourcePath]);
content[importPath] = lodash.uniqWith(content[importPath], lodash.isEqual);
}
content["atime"] = content["atime"] || {};
content["atime"][importPath] = fs.statSync(importPath).atime.toString();
fs.writeFileSync(process.env.watchCSSFiles, JSON.stringify(content, null, 2));
}
}