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

作者:admin,如若转载,请注明出处:https://www.web176.com/vite/23785.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023年6月7日
下一篇 2023年6月7日

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注