1 Star 0 Fork 0

im76ix/suyon-ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.js 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
im76ix 提交于 2024-06-07 09:54 . update
import { defineConfig } from "vite";
import { resolve } from "path";
import vue from "@vitejs/plugin-vue";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue({
include: [/\.vue$/, /\.md$/],
}),
],
css: {
preprocessorOptions: {
less: {
javascriptEnabled: true,
},
},
},
resolve: {
alias: {
"@": resolve(__dirname, "./src"),
},
},
build: {
outDir: "dist",
target: "es2015",
lib: {
name: "SuYonUI", // 名称
entry: resolve(__dirname, "src/packages/index.js"), // 打包文件入口
fileName: (format) => `suyon-ui.${format}.js`, // 打包文件的名字
},
chunkSizeWarningLimit: 2000,
rollupOptions: {
external: [
"vue",
"axios",
"echarts",
"@popperjs/core",
"vue-router",
"element-plus",
],
output: {
exports: "named",
globals: {
vue: "Vue",
axios: "axios",
echarts: "echarts",
"vue-router": "vueRouter",
"element-plus": "ElementPlus",
"@popperjs/core": "@popperjs/core",
},
},
},
},
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/im76ix/suyon-ui.git
[email protected]:im76ix/suyon-ui.git
im76ix
suyon-ui
suyon-ui
master

搜索帮助