update compiler/main.js.

Signed-off-by: 卡哥 <lizhouze@huawei.com>
This commit is contained in:
卡哥
2022-08-23 07:43:45 +00:00
committed by Gitee
parent 697d579df1
commit fd1e6409d5
+1
View File
@@ -387,6 +387,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);