mirror of
https://gitee.com/openharmony/developtools_ace_js2bundle
synced 2024-11-23 07:20:22 +00:00
update ace-loader/src/resource-plugin.js.
Signed-off-by: 卡哥 <lizhouze@huawei.com>
This commit is contained in:
parent
dd89005908
commit
8979d48db4
@ -178,7 +178,8 @@ class ResourcePlugin {
|
||||
function checkRemove(comp) {
|
||||
const removedFiles = comp.removedFiles || [];
|
||||
removedFiles.forEach(file => {
|
||||
if (file.indexOf(process.env.projectPath) > -1) {
|
||||
if (file.indexOf(process.env.projectPath) > -1 && path.extname(file) === '.json' &&
|
||||
file.indexOf('i18n') > -1) {
|
||||
const buildFilePath = file.replace(process.env.projectPath, process.env.buildPath);
|
||||
if (fs.existsSync(buildFilePath)) {
|
||||
fs.unlinkSync(buildFilePath);
|
||||
|
Loading…
Reference in New Issue
Block a user