refactor: 修改移动端打包路径

This commit is contained in:
fit2cloud-chenyw 2022-01-27 16:55:17 +08:00
parent 8207b12e1b
commit 84d8b16b4f
3 changed files with 4 additions and 4 deletions

View File

@ -424,13 +424,13 @@
</move> </move>
<copy todir="src/main/resources/static/de-app"> <copy todir="src/main/resources/static/de-app">
<fileset dir="../mobile/dist/build/h5"> <fileset dir="../mobile/dist">
<exclude name="*.html"/> <exclude name="*.html"/>
</fileset> </fileset>
</copy> </copy>
<copy file="../mobile/dist/build/h5/index.html" tofile="src/main/resources/templates/app.html" /> <copy file="../mobile/dist/index.html" tofile="src/main/resources/templates/app.html" />
</target> </target>

2
mobile/.gitignore vendored
View File

@ -6,7 +6,7 @@ yarn-debug.log*
yarn-error.log* yarn-error.log*
package-lock.json package-lock.json
tests/**/coverage/ tests/**/coverage/
.automator/
# Editor directories and files # Editor directories and files
.hbuilderx .hbuilderx
.idea .idea

View File

@ -7,7 +7,7 @@
"build": "npm run build:h5", "build": "npm run build:h5",
"build:app-plus": "cross-env NODE_ENV=production UNI_PLATFORM=app-plus vue-cli-service uni-build", "build:app-plus": "cross-env NODE_ENV=production UNI_PLATFORM=app-plus vue-cli-service uni-build",
"build:custom": "cross-env NODE_ENV=production uniapp-cli custom", "build:custom": "cross-env NODE_ENV=production uniapp-cli custom",
"build:h5": "cross-env NODE_ENV=production UNI_PLATFORM=h5 vue-cli-service uni-build", "build:h5": "cross-env NODE_ENV=production UNI_PLATFORM=h5 UNI_OUTPUT_DIR=dist vue-cli-service uni-build",
"build:mp-360": "cross-env NODE_ENV=production UNI_PLATFORM=mp-360 vue-cli-service uni-build", "build:mp-360": "cross-env NODE_ENV=production UNI_PLATFORM=mp-360 vue-cli-service uni-build",
"build:mp-alipay": "cross-env NODE_ENV=production UNI_PLATFORM=mp-alipay vue-cli-service uni-build", "build:mp-alipay": "cross-env NODE_ENV=production UNI_PLATFORM=mp-alipay vue-cli-service uni-build",
"build:mp-baidu": "cross-env NODE_ENV=production UNI_PLATFORM=mp-baidu vue-cli-service uni-build", "build:mp-baidu": "cross-env NODE_ENV=production UNI_PLATFORM=mp-baidu vue-cli-service uni-build",