您的位置:58编程 > Vite HMR API build

Vite HMR API build

2023-04-06 14:33 Vite教程

 Vite HMR API build

类型校验:

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: {
        // ...
      }
    }
  })
})()


阅读全文
以上是58编程为你收集整理的 Vite HMR API build全部内容。
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
相关文章
© 2024 58编程 58biancheng.com 版权所有 联系我们
桂ICP备12005667号-32 Powered by CMS