1 Star 0 Fork 481

Denver ning/vue-devui

forked from DevUI/vue-devui 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
vite.config.build.ts 766 Bytes
Copy Edit Raw Blame History
Kagol authored 2021-07-12 22:26 . build: build lib
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx';
import markdown from 'vite-plugin-md';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue({
include: [/\.vue$/, /\.md$/],
}),
vueJsx({}),
markdown()
],
build: {
rollupOptions: {
// 请确保外部化那些你的库中不需要的依赖
external: ['vue', 'vue-router'],
output: {
// 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
globals: {
vue: 'Vue'
}
}
},
lib: {
entry: 'devui/vue-devui.ts',
name: 'vue-devui',
fileName: 'vue-devui',
formats: ['es', 'umd']
}
}
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/Denver-Ning/vue-devui.git
git@gitee.com:Denver-Ning/vue-devui.git
Denver-Ning
vue-devui
vue-devui
dev

Search