27 lines
399 B
TypeScript
27 lines
399 B
TypeScript
import { defineConfig } from 'vite'
|
|
import uni from '@dcloudio/vite-plugin-uni'
|
|
|
|
export default defineConfig({
|
|
plugins: [uni()],
|
|
server: {
|
|
host: '0.0.0.0'
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': '/src'
|
|
}
|
|
},
|
|
optimizeDeps: {
|
|
include: ['three']
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
three: ['three']
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|