同步最新bladex私服的Saber,并且集成好了工作流插件
包含表单设计器
https://git.nutflow.vip/blade-workflow/Saber
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
945 B
33 lines
945 B
|
3 years ago
|
import { defineConfig, loadEnv } from 'vite'
|
||
|
|
const { resolve } = require('path')
|
||
|
|
import createVitePlugins from './vite/plugins'
|
||
|
|
// https://vitejs.dev/config/
|
||
|
|
export default ({ mode, command }) => {
|
||
|
|
const env = loadEnv(mode, process.cwd())
|
||
|
|
const { VITE_APP_BASE } = env
|
||
|
|
return defineConfig({
|
||
|
|
base: VITE_APP_BASE,
|
||
|
|
server: {
|
||
|
|
port: 2888,
|
||
|
|
proxy: {
|
||
|
|
'/api': {
|
||
|
|
target: 'http://localhost',
|
||
|
|
//target: 'http://test3.javablade.com',
|
||
|
|
changeOrigin: true,
|
||
|
|
rewrite: (path) => path.replace(/^\/api/, '')
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
resolve: {
|
||
|
|
alias: {
|
||
|
|
'~': resolve(__dirname, './'),
|
||
|
|
"@": resolve(__dirname, "./src"),
|
||
|
|
"components": resolve(__dirname, "./src/components"),
|
||
|
|
"styles": resolve(__dirname, "./src/styles"),
|
||
|
|
"utils": resolve(__dirname, "./src/utils"),
|
||
|
|
}
|
||
|
|
},
|
||
|
|
plugins: createVitePlugins(env, command === 'build'),
|
||
|
|
})
|
||
|
|
}
|