Commit 4e592f36 authored by rockyl's avatar rockyl

素材压缩

parent ea716a84
......@@ -230,7 +230,7 @@ function fillTpl(data, params) {
return newTpl;
}
async function packData(data, {debug, getProcesses, getScripts, getCustoms}) {
async function packData(data, {debug, packedAssets, getProcesses, getScripts, getCustoms}) {
const processManager = new ProcessManager();
const scriptManager = new ScriptManager();
const customManager = new CustomManager();
......@@ -238,7 +238,7 @@ async function packData(data, {debug, getProcesses, getScripts, getCustoms}) {
let newData = {};
newData.options = data.options;
newData.views = data.views;
newData.assets = data.assets;
newData.assets = packedAssets || data.assets;
newData.dataMapping = data.dataMapping;
newData.processes = data.processes;
......
This diff is collapsed.
......@@ -236,7 +236,7 @@ function fillTpl(data, params) {
return newTpl;
}
async function packData(data, {debug, getProcesses, getScripts, getCustoms}) {
async function packData(data, {debug, packedAssets, getProcesses, getScripts, getCustoms}) {
const processManager = new ProcessManager();
const scriptManager = new ScriptManager();
const customManager = new CustomManager();
......@@ -244,7 +244,7 @@ async function packData(data, {debug, getProcesses, getScripts, getCustoms}) {
let newData = {};
newData.options = data.options;
newData.views = data.views;
newData.assets = data.assets;
newData.assets = packedAssets || data.assets;
newData.dataMapping = data.dataMapping;
newData.processes = data.processes;
......
This diff is collapsed.
......@@ -236,7 +236,7 @@ ${scripts}
return newTpl;
}
async function packData(data, {debug, getProcesses, getScripts, getCustoms}) {
async function packData(data, {debug, packedAssets, getProcesses, getScripts, getCustoms}) {
const processManager = new ProcessManager();
const scriptManager = new ScriptManager();
const customManager = new CustomManager();
......@@ -244,7 +244,7 @@ ${scripts}
let newData = {};
newData.options = data.options;
newData.views = data.views;
newData.assets = data.assets;
newData.assets = packedAssets || data.assets;
newData.dataMapping = data.dataMapping;
newData.processes = data.processes;
......
This diff is collapsed.
......@@ -33,7 +33,7 @@ export function fillTpl(data, params) {
return newTpl;
}
async function packData(data, {debug, getProcesses, getScripts, getCustoms}) {
async function packData(data, {debug, packedAssets, getProcesses, getScripts, getCustoms}) {
const processManager = new ProcessManager();
const scriptManager = new ScriptManager();
const customManager = new CustomManager();
......@@ -41,7 +41,7 @@ async function packData(data, {debug, getProcesses, getScripts, getCustoms}) {
let newData = {};
newData.options = data.options;
newData.views = data.views;
newData.assets = data.assets;
newData.assets = packedAssets || data.assets;
newData.dataMapping = data.dataMapping;
newData.processes = data.processes;
......
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