@xfe-repo/mini-app 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/config/index.ts CHANGED
@@ -65,6 +65,9 @@ export default defineConfig<'webpack5'>(async (merge) => {
65
65
  }
66
66
  },
67
67
  h5: {
68
+ router: {
69
+ mode: 'browser',
70
+ },
68
71
  publicPath: '/',
69
72
  staticDirectory: 'static',
70
73
  output: {
package/deploy/.drone.yml CHANGED
@@ -148,7 +148,6 @@ steps:
148
148
  - /usr/local/bin/dockerd-entrypoint.sh 2>&1 >> /dev/null &
149
149
  - sleep 5
150
150
  - sh /data/scripts/builderInit.sh
151
- - mkdir -p build/client && cp -r dist/h5 build/client
152
151
  - appName="`echo ${DRONE_REPO//\//-}`"
153
152
  - sed -i "s/<<APP_NAME>>/$appName/g" deploy/helm/values.yaml
154
153
  - docker build -f deploy/Dockerfile -t xhj-prod-registry-vpc.cn-hangzhou.cr.aliyuncs.com/xhj-image/$$appName:$$CI_COMMIT_SHA . --no-cache
package/deploy/Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM xhj-prod-registry.cn-hangzhou.cr.aliyuncs.com/xhj-image-common/nginx-base
2
2
 
3
3
  WORKDIR /code/www/deploy/webroot/app/current
4
4
 
5
- COPY build/client ./
5
+ COPY dist/h5 ./
6
6
 
7
7
  COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/mini-app",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "bin": {
5
5
  "xfe-mini": "./bin/index.js"
6
6
  },