5 Star 110 Fork 43

sunhuapeng/threejsAnimation

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.ts 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
绛河 提交于 2024-12-09 16:17 . fix: 整理代码
// vite.config.js
import { resolve } from 'path'
import { defineConfig } from 'vite'
import topLevelAwait from 'vite-plugin-top-level-await'
import path from 'path'
export default defineConfig({
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
animation: resolve(__dirname, 'animation.html'),
camera: resolve(__dirname, '手柄控制摄像头跟踪/index.html'),
physics: resolve(__dirname, '物理引擎/index.html'),
astar: resolve(__dirname, '寻路基础/index.html'),
astar2: resolve(__dirname, '寻路场景/index.html'),
car: resolve(__dirname, '小汽车/index.html'),
ray: resolve(__dirname, '遮挡判断/index.html'),
map: resolve(__dirname, '地图下钻/index.html'),
scene: resolve(__dirname, '多重视图/index.html'),
clip: resolve(__dirname, '切割logo/index.html'),
magic: resolve(__dirname, '魔法阵/index.html'),
performance: resolve(__dirname, '性能优化/index.html'),
city: resolve(__dirname, '城市/index.html'),
},
},
},
plugins: [topLevelAwait({
promiseExportName: '__tla',
promiseImportName: i => `__tla_${i}`
})],
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
}
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sunhuapeng/threejs-animation.git
git@gitee.com:sunhuapeng/threejs-animation.git
sunhuapeng
threejs-animation
threejsAnimation
master

搜索帮助