const { defineConfig } = require('vite')
module.exports = defineConfig({
build: {
rollupOptions: {
input: {
main: './index.html',
about: './about.html',
shaderOne: './shaderOne.html',
// ...
// List all files you want in your build
}
}
}
})
build.rollupOptions.external
。我将其添加到我的配置文件中,但似乎语法不正确。我需要修复什么? build: { rollupOptions: { external: { style: './style.css', }, - Yerbs