perf-静态资源

This commit is contained in:
Huang 2022-10-09 18:01:53 +08:00
parent 8f3e76d051
commit ee7b1a6598
18 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ $fa-stack-width: ($fa-fw-width * 2) !default;
$fa-stack-z-index: auto !default; $fa-stack-z-index: auto !default;
$fa-font-display: block !default; $fa-font-display: block !default;
$fa-font-path: './webfonts' !default; $fa-font-path: '/static/fonts' !default;
$fa-primary-color: inherit !default; $fa-primary-color: inherit !default;
$fa-primary-opacity: 1 !default; $fa-primary-opacity: 1 !default;

View File

@ -35,12 +35,12 @@ export default ({ mode }: ConfigEnv): UserConfig => {
'/api': { '/api': {
target: env.VITE_BASE_URL, target: env.VITE_BASE_URL,
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''), rewrite: path => path.replace(/^\/api/, ''),
}, },
'/upload': { '/upload': {
target: env.VITE_BASE_URL, target: env.VITE_BASE_URL,
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/upload/, ''), rewrite: path => path.replace(/^\/upload/, ''),
}, },
}, },
}, },