1 Star 0 Fork 6

董永伟 / magic-boot-ui

forked from 吕金泽 / magic-boot-ui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.js 1021 Bytes
一键复制 编辑 原始数据 按行查看 历史
吕金泽 提交于 2023-12-13 15:27 . first commit
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import viteSvgIcons from 'vite-plugin-svg-icons'
// https://vitejs.dev/config/
export default defineConfig({
base: './',
plugins: [
vue(),
viteSvgIcons({
iconDirs: [path.resolve(process.cwd(), 'src/icons')],
symbolId: 'mb-icon-[name]'
})
],
resolve: {
extensions: ['.vue', '.json', '.js'],
alias: {
'@': path.resolve(__dirname,'src')
}
},
css: {//去除@charset UTF-8规则影响
postcss: {
plugins: [
{
postcssPlugin: 'internal:charset-removal',
AtRule: {
charset: (atRule) => {
if (atRule.name === 'charset') {
atRule.remove();
}
}
}
}
]
}
}
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dongyongwei/magic-boot-ui.git
git@gitee.com:dongyongwei/magic-boot-ui.git
dongyongwei
magic-boot-ui
magic-boot-ui
master

搜索帮助