mirror of https://github.com/vuejs/vitepress
parent
220622557f
commit
b94a0865b0
@ -1,6 +1,11 @@
|
||||
import { buildClient } from './buildClient'
|
||||
import { BuildOptions } from 'vite'
|
||||
import { bundle } from './bundle'
|
||||
import { BuildOptions as ViteBuildOptions } from 'vite'
|
||||
|
||||
export type BuildOptions = Pick<
|
||||
ViteBuildOptions,
|
||||
'root' | 'rollupInputOptions' | 'rollupOutputOptions'
|
||||
>
|
||||
|
||||
export async function build(options: BuildOptions = {}) {
|
||||
await buildClient(options)
|
||||
await bundle(options)
|
||||
}
|
||||
|
Loading…
Reference in new issue