update compiler/main.js.

Signed-off-by: 卡哥 <lizhouze@huawei.com>
This commit is contained in:
卡哥
2022-08-23 07:43:00 +00:00
committed by Gitee
parent ca0cfd8eab
commit a1d98f021e
+1
View File
@@ -345,6 +345,7 @@ function checkAppResourcePath(appResourcePath, config) {
config.cache.buildDependencies.config.push(appResourcePath);
}
if (!projectConfig.xtsMode) {
const appResourcePathSavePath = path.resolve(projectConfig.cachePath, 'resource_path.txt');
saveAppResourcePath(appResourcePath, appResourcePathSavePath);
if (fs.existsSync(appResourcePathSavePath) && config.cache) {
config.cache.buildDependencies.config.push(appResourcePathSavePath);