mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
publicPath使用相对目录
This commit is contained in:
parent
a5075ab28f
commit
015cdc10a7
|
@ -6,10 +6,11 @@ export default defineConfig({
|
||||||
antd: {},
|
antd: {},
|
||||||
outputPath: 'static/dist',
|
outputPath: 'static/dist',
|
||||||
fastRefresh: true,
|
fastRefresh: true,
|
||||||
favicons: ['/images/favicon.svg'],
|
favicons: ['./images/favicon.svg'],
|
||||||
mfsu: {
|
mfsu: {
|
||||||
strategy: 'eager',
|
strategy: 'eager',
|
||||||
},
|
},
|
||||||
|
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api/public': {
|
'/api/public': {
|
||||||
target: 'http://127.0.0.1:5400/',
|
target: 'http://127.0.0.1:5400/',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user