加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.ts 951 Bytes
一键复制 编辑 原始数据 按行查看 历史
jeremyjone 提交于 2021-09-24 16:44 . feat(init): 初始提交,vue3版本
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";
import eslintPlugin from "vite-plugin-eslint";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
eslintPlugin({
include: ["src/**/*.js", "src/**/*.vue", "src/**/*.ts"]
})
],
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
components: path.resolve(__dirname, "src/components"),
styles: path.resolve(__dirname, "src/styles"),
utils: path.resolve(__dirname, "src/utils")
}
},
build: {
cssCodeSplit: true,
// sourcemap: true,
lib: {
entry: path.resolve(__dirname, "src/index.ts"),
name: "jz-gantt",
fileName: format => `jz-gantt.${format}.js`
},
rollupOptions: {
external: ["vue"],
preserveEntrySignatures: "strict",
output: {
globals: {
vue: "Vue"
}
}
}
}
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化