90 Star 617 Fork 105

PPTist/PPTist

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.ts 753 Bytes
一键复制 编辑 原始数据 按行查看 历史
PPTist 提交于 2025-02-04 16:01 +08:00 . perf: 简化页面模板
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
base: '',
plugins: [
vue(),
],
server: {
host: '127.0.0.1',
port: 5173,
proxy: {
'/api': {
target: 'https://server.pptist.cn',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
}
}
},
css: {
preprocessorOptions: {
scss: {
additionalData: `
@import '@/assets/styles/variable.scss';
@import '@/assets/styles/mixin.scss';
`
},
},
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/pptist/PPTist.git
git@gitee.com:pptist/PPTist.git
pptist
PPTist
PPTist
master

搜索帮助