1 Star 1 Fork 0

ModestUI / Modest-UI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.js 579 Bytes
一键复制 编辑 原始数据 按行查看 历史
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue2 from '@vitejs/plugin-vue2'
export default defineConfig({
plugins: [
vue2()
],
build: {
build: {
lib: {
entry: '@/index.js',
name: 'Modest',
}
},
rollupOptions: {
external: ['vue'],
output: {
globals: {
vue: 'Vue'
}
}
}
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
optimizeDeps: {
exclude: ['@vitejs/plugin-legacy']
}
});
JavaScript
1
https://gitee.com/modest-UI/modest-ui.git
git@gitee.com:modest-UI/modest-ui.git
modest-UI
modest-ui
Modest-UI
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891