mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 18:42:49 +08:00
完成打包和最小化格式化
This commit is contained in:
@@ -4,8 +4,9 @@ return [
|
||||
// 全局函数库,否则无论是否以/开头,都以项目根目录开头定位,如果有其他的文件,在这里声明
|
||||
// 不支持项目以外的位置定义
|
||||
// 只能包含函数,不支持命名空间
|
||||
// 这些代码不能包含__DIR__、__FILE__等代码位置常量,不会影响打包,但代码逻辑会被破坏
|
||||
// 将忽略注释和注解,代码业务请不要依赖注解
|
||||
// 这些代码将忽略include、require表达式,所以如果用include 方式引入其他函数库,要在这里声明,
|
||||
// !如果使用include方式读取文件内容或配置,将失败
|
||||
// !将忽略注释和注解,代码业务请不要依赖注解
|
||||
'function_path' => [
|
||||
'app/common.php'
|
||||
],
|
||||
@@ -14,6 +15,7 @@ return [
|
||||
'/^\.git/',
|
||||
'/^dist/',
|
||||
'/^runtime/',
|
||||
'/app\/common.php/',
|
||||
],
|
||||
// 支持正则表达式,将文件原封不动的挪到输出目录
|
||||
'ignore_path' => [
|
||||
@@ -26,7 +28,6 @@ return [
|
||||
'/provider\.php/',
|
||||
'/service\.php/',
|
||||
'/^app\/.*\/config\/.*/',
|
||||
'/app\/common.php/',
|
||||
'/config.php/',
|
||||
'/^public\/index\.php/',
|
||||
'/^public\/router\.php/',
|
||||
|
||||
Reference in New Issue
Block a user