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

Signed-off-by: 卡哥 <lizhouze@huawei.com>
This commit is contained in:
卡哥
2022-09-01 10:52:00 +00:00
committed by Gitee
parent 3c870cf8ae
commit cca2efc21b
+2 -2
View File
@@ -76,8 +76,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') {
} else if (output && path.extname(key) === '.json' &&
process.env.DEVICE_LEVEL === 'card') {
writeFileSync(assets[key].source(),
path.resolve(output, key.replace(/\.json$/, '.json')), false);
}