mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 09:26:46 +08:00
init 初始化
This commit is contained in:
3
.env
3
.env
@@ -1,5 +1,6 @@
|
||||
VITE_BASE=/student-h5
|
||||
VITE_BASE_API=
|
||||
VITE_BASE_API=/manageAPi
|
||||
VITE_OUTPUT_DIR=./dist
|
||||
VITE_BASE_LOGIN_URL=https://u-pre.boe.com/web?returnUrl=
|
||||
VITE_PROXY_URL=http://111.231.196.214:30001
|
||||
|
||||
|
||||
5
.env.test
Normal file
5
.env.test
Normal file
@@ -0,0 +1,5 @@
|
||||
VITE_BASE=/student-h5
|
||||
VITE_BASE_API=/manageApi
|
||||
|
||||
VITE_OUTPUT_DIR=./docker/dist
|
||||
VITE_BOE_API_URL=https://u-pre.boe.com
|
||||
5
docker/Dockerfile
Normal file
5
docker/Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM devforth/spa-to-http:latest
|
||||
WORKDIR /
|
||||
|
||||
ADD ./dist/ .
|
||||
EXPOSE 8080
|
||||
@@ -10,6 +10,9 @@ const path = require('path')
|
||||
export default defineConfig(({command,mode}) =>
|
||||
({
|
||||
base: loadEnv(mode, process.cwd()).VITE_BASE,
|
||||
build:{
|
||||
outDir: loadEnv(mode, process.cwd()).VITE_OUTPUT_DIR,
|
||||
},
|
||||
plugins: [
|
||||
vue(),
|
||||
legacy({
|
||||
|
||||
Reference in New Issue
Block a user