mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 11:32:48 +08:00
优化索引生成
This commit is contained in:
@@ -875,10 +875,16 @@ class Dist extends Command
|
|||||||
new Arg(new String_('1'))
|
new Arg(new String_('1'))
|
||||||
]
|
]
|
||||||
));
|
));
|
||||||
|
$include_path = [];
|
||||||
|
|
||||||
$file_stmts[] = new Expression(new Include_(new Concat(new Dir, new String_($this->includeLibPath['magic_var_map'])), Include_::TYPE_REQUIRE_ONCE));
|
$include_path[] = $this->includeLibPath['magic_var_map'];
|
||||||
$file_stmts[] = new Expression(new Include_(new Concat(new Dir, new String_($this->includeLibPath['function_lib_file'])), Include_::TYPE_REQUIRE_ONCE));
|
$include_path[] = $this->includeLibPath['function_lib_file'];
|
||||||
$file_stmts[] = new Expression(new Include_(new Concat(new Dir, new String_($this->includeLibPath['main_class_file'])), Include_::TYPE_REQUIRE_ONCE));
|
$include_path[] = $this->includeLibPath['main_class_file'];
|
||||||
|
|
||||||
|
foreach ($include_path as $path) {
|
||||||
|
$_path = substr($path, 3);
|
||||||
|
$file_stmts[] = new Expression(new Include_(new Concat(new Dir, new String_($_path)), Include_::TYPE_REQUIRE_ONCE));
|
||||||
|
}
|
||||||
|
|
||||||
$prettyPrinter = new MinifyPrinterTools();
|
$prettyPrinter = new MinifyPrinterTools();
|
||||||
|
|
||||||
@@ -1045,7 +1051,4 @@ class Dist extends Command
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user