mirror of
https://github.com/openharmony/developtools_ace-js2bundle.git
synced 2026-07-20 21:59:23 -04:00
update ace-loader/src/genAbc-plugin.js.
Signed-off-by: 卡哥 <lizhouze@huawei.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user