1 Star 0 Fork 60

三十三204/admin-work

forked from 清清玄/admin-work 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.ts 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
清清玄 提交于 2024-02-04 13:57 . optimize deps
import vue from '@vitejs/plugin-vue'
import { createSvgIconsPlugin } 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(),
createSvgIconsPlugin({
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/thirty-three-204/admin-work.git
git@gitee.com:thirty-three-204/admin-work.git
thirty-three-204
admin-work
admin-work
master

搜索帮助