update ace-loader/src/genAbc-plugin.js.

Signed-off-by: 卡哥 <lizhouze@huawei.com>
This commit is contained in:
卡哥
2022-09-01 10:45:07 +00:00
committed by Gitee
parent 5d6544c905
commit f43f64dacc
+2 -1
View File
@@ -77,7 +77,8 @@ class GenAbcPlugin {
const keyPath = key.replace(/\.js$/, firstFileEXT)
writeFileSync(newContent, path.resolve(output, keyPath), true);
} else if (output && path.extname(key) === '.json' && process.env.DEVICE_LEVEL === 'card') {
writeFileSync(assets[key].source(), path.resolve(output, key.replace(/\.json$/, '.json')), false);
writeFileSync(assets[key].source(), path.resolve(output, key.replace(/\.json$/, '.json')),
false);
}
})
});