添加主程序全局变量配置
This commit is contained in:
parent
4c42a2d9cc
commit
c811ddedb9
@ -18,3 +18,4 @@ VITE_APP_UPLOAD_API = '/uploadApis'
|
||||
# 内网接口地址
|
||||
VITE_APP_BASE_URL = 'http://192.168.18.99:8080'
|
||||
VITE_APP_UPLOAD_URL = 'http://192.168.18.99:8080'
|
||||
VITE_APP_VIST_URL = 'http://192.168.18.99'
|
||||
|
@ -12,3 +12,4 @@ VITE_APP_BASE_API = '/apis'
|
||||
VITE_APP_BASE_URL = ''
|
||||
VITE_APP_UPLOAD_API = '/uploadApis'
|
||||
VITE_APP_UPLOAD_URL = ''
|
||||
VITE_APP_VIST_URL = 'http://192.168.18.99'
|
@ -21,6 +21,13 @@ export default defineConfig(({ command, mode }) => {
|
||||
target: 'ESNext',
|
||||
outDir: 'dist',
|
||||
minify: 'terser',
|
||||
rollupOptions: {
|
||||
output: {
|
||||
chunkFileNames: `static/js/[name]-${Date.now()}-[hash].js`,
|
||||
entryFileNames: `static/js/[name]-${Date.now()}-[hash].js`,
|
||||
assetFileNames: `static/[ext]/[name]-${Date.now()}-[hash].[ext]`,
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
|
Loading…
x
Reference in New Issue
Block a user