Commit 96ad1469 authored by rockyl's avatar rockyl

分离代码分离器

parent f6faa06e
......@@ -267,8 +267,11 @@ async function divideCode(data, {debug, compile, uglify, getProcesses, getScript
data.customs = (await getCustoms(customs)).map(item => {
const custom = typeof item === 'string' ? JSON.parse(item) : item;
customManager.deal(custom);
delete custom.code;
return custom;
return {
id: custom.id,
name: custom.name,
assets: custom.assets,
};
});
}
let customScriptContent = customManager.generate();
......
This diff is collapsed.
......@@ -273,8 +273,11 @@ async function divideCode(data, {debug, compile, uglify, getProcesses, getScript
data.customs = (await getCustoms(customs)).map(item => {
const custom = typeof item === 'string' ? JSON.parse(item) : item;
customManager.deal(custom);
delete custom.code;
return custom;
return {
id: custom.id,
name: custom.name,
assets: custom.assets,
};
});
}
let customScriptContent = customManager.generate();
......
This diff is collapsed.
......@@ -273,8 +273,11 @@ ${scripts}
data.customs = (await getCustoms(customs)).map(item => {
const custom = typeof item === 'string' ? JSON.parse(item) : item;
customManager.deal(custom);
delete custom.code;
return custom;
return {
id: custom.id,
name: custom.name,
assets: custom.assets,
};
});
}
let customScriptContent = customManager.generate();
......
This diff is collapsed.
......@@ -99,8 +99,11 @@ export async function divideCode(data, {debug, compile, uglify, getProcesses, ge
data.customs = (await getCustoms(customs)).map(item => {
const custom = typeof item === 'string' ? JSON.parse(item) : item;
customManager.deal(custom);
delete custom.code;
return custom;
return {
id: custom.id,
name: custom.name,
assets: custom.assets,
};
})
}
let customScriptContent = customManager.generate();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment