mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-05 19:41:44 +08:00
perf-静态资源
This commit is contained in:
parent
8f3e76d051
commit
ee7b1a6598
@ -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;
|
||||||
|
@ -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/, ''),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user