diff --git a/deps/weex-styler/index.js b/deps/weex-styler/index.js index 197cb8546a8a68656d329f64399607a7c3b8ed34..363f50259128ec9eab6af40c5637427d729f48aa 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)); } }