2 Star 1 Fork 0

kzwang/threejs-learning

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.js 682 Bytes
一键复制 编辑 原始数据 按行查看 历史
Yang Bo 杨波 (HIG) 提交于 2022-09-16 18:17 . 聚合图,框选等
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import path from 'path'
export default defineConfig({
plugins: [
vue(),
AutoImport({
resolvers: [ElementPlusResolver()],
}),
Components({
resolvers: [ElementPlusResolver()],
}),
],
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
}
},
// base: './',
build: {
// sourcemap: true,
commonjsOptions: {
strictRequires: true, // 兼容commonjs
}
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ke8/threejs-learning.git
[email protected]:ke8/threejs-learning.git
ke8
threejs-learning
threejs-learning
public

搜索帮助