1 Star 1 Fork 0

imAei/zxjs-front

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.ts 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
imAei 提交于 2022-05-12 22:48 . feat:5.12
/*
* @Descripttion:
* @Author: Wang Dejiang(aei)
* @Date: 2022-04-12 19:02:47
* @LastEditors: Wang Dejiang(aei)
* @LastEditTime: 2022-05-04 22:08:43
*/
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import prismjs from 'vite-plugin-prismjs'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
AutoImport({
resolvers: [ElementPlusResolver()],
}),
Components({
resolvers: [ElementPlusResolver()],
}),
vue(),
prismjs({
languages: ['json', 'javascript', 'bash', 'typescript'],
}),
],
build: {
chunkSizeWarningLimit: 1000, //增大文件大小限制
outDir: 'htmlDist',
rollupOptions: {
output: {
manualChunks: {
// element: ['element-plus'], //将element-plus的文件单独打包
},
},
},
},
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wizardAEI/zxjs-front.git
[email protected]:wizardAEI/zxjs-front.git
wizardAEI
zxjs-front
zxjs-front
master

搜索帮助