1 Star 0 Fork 60

疯狂的逍遥/admin-work

forked from 清清玄/admin-work 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.ts 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
清清玄 提交于 2022-06-02 12:51 . fixed layout loading fail bug
import vue from '@vitejs/plugin-vue'
import viteSvgIcons from 'vite-plugin-svg-icons'
import path from 'path'
import vitePluginCompression from 'vite-plugin-compression'
import ViteComponents from 'unplugin-vue-components/vite'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
import vueJsx from '@vitejs/plugin-vue-jsx'
export default () => {
return {
base: '/',
plugins: [
vue(),
viteSvgIcons({
iconDirs: [path.resolve(process.cwd(), 'src/icons')],
symbolId: 'icon-[dir]-[name]',
}),
vitePluginCompression({
threshold: 1024 * 10,
}),
ViteComponents({
resolvers: [NaiveUiResolver()],
}),
vueJsx(),
],
css: {
preprocessorOptions: {
scss: {
additionalData: '@use "./src/styles/variables.scss" as *;',
},
},
},
resolve: {
alias: [
{
find: '@/',
replacement: path.resolve(process.cwd(), 'src') + '/',
},
],
},
server: {
open: true,
},
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wlz-xb/admin-work.git
git@gitee.com:wlz-xb/admin-work.git
wlz-xb
admin-work
admin-work
master

搜索帮助