update
parent
b5ffd5572d
commit
977e710fee
|
@ -22,7 +22,7 @@ declare module '@gm5/core' {
|
||||||
listen(port?: number, callback?: () => void): this
|
listen(port?: number, callback?: () => void): this
|
||||||
}
|
}
|
||||||
|
|
||||||
export function preload(dir?: string): array
|
export function mount(dir?: string): array
|
||||||
|
|
||||||
export function createApp(conf?: object): Five
|
export function createApp(conf?: object): Five
|
||||||
}
|
}
|
||||||
|
|
4
index.js
4
index.js
|
@ -144,7 +144,7 @@ class Five {
|
||||||
* @deprecated 请使用use方法, 将在下个版本中移除
|
* @deprecated 请使用use方法, 将在下个版本中移除
|
||||||
*/
|
*/
|
||||||
preload(dir) {
|
preload(dir) {
|
||||||
this.#preload(preload(dir))
|
this.#preload(mount(dir))
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ class Five {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function preload(dir) {
|
export function mount(dir) {
|
||||||
let list = fs.ls(dir) || []
|
let list = fs.ls(dir) || []
|
||||||
return list
|
return list
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue