From 707a4960e8262d00b08dd49b39e9f4bb84f68a1e Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 22 Nov 2022 19:45:43 +0800 Subject: [PATCH] lizhouze@huawei.com Signed-off-by: unknown --- deps/weex-styler/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deps/weex-styler/index.js b/deps/weex-styler/index.js index 197cb85..363f502 100644 --- a/deps/weex-styler/index.js +++ b/deps/weex-styler/index.js @@ -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)); } } -- Gitee