Vite HMR API build
2023-02-17 11:41 更新
类型校验:
async function build(
inlineConfig?: InlineConfig
): Promise<RollupOutput | RollupOutput[]>使用示例:
const path = require('path')
const { build } = require('vite')
;(async () => {
await build({
root: path.resolve(__dirname, './project'),
base: '/foo/',
build: {
rollupOptions: {
// ...
}
}
})
})()以上内容是否对您有帮助:

免费 AI IDE


更多建议: