3 Star 1 Fork 1

mirrors_antoine92190/vue-advanced-chat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.js 502 Bytes
一键复制 编辑 原始数据 按行查看 历史
antoine92190 提交于 2022-08-26 04:13 +08:00 . (chore) remove external vue in build config
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
export default defineConfig({
plugins: [vue({ customElement: true })],
build: {
lib: {
entry: resolve(__dirname, 'src/lib/index.js'),
name: 'vue-advanced-chat'
},
rollupOptions: {
output: {
globals: {
vue: 'Vue'
}
}
}
},
resolve: {
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
alias: {
'@': resolve(__dirname, './src')
}
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_antoine92190/vue-advanced-chat.git
git@gitee.com:mirrors_antoine92190/vue-advanced-chat.git
mirrors_antoine92190
vue-advanced-chat
vue-advanced-chat
main

搜索帮助