Merge branch 'main' of git.waypeak.work:martial/martial-mini
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -10,9 +10,12 @@ trigger:
|
|||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: node:16-alpine
|
image: node:16-alpine
|
||||||
|
environment:
|
||||||
|
NODE_OPTIONS: --max-old-space-size=4096
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install --legacy-peer-deps
|
||||||
- ./node_modules/.bin/cross-env NODE_ENV=production UNI_PLATFORM=h5 ./node_modules/.bin/vue-cli-service build
|
- npm run build:h5
|
||||||
|
- ls -la dist/dev/h5/
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
@@ -21,7 +24,7 @@ steps:
|
|||||||
username: root
|
username: root
|
||||||
key:
|
key:
|
||||||
from_secret: ssh_key
|
from_secret: ssh_key
|
||||||
source: dist/build/h5/*
|
source: dist/dev/h5/*
|
||||||
target: /var/www/martial-mini
|
target: /var/www/martial-mini
|
||||||
strip_components: 3
|
strip_components: 3
|
||||||
|
|
||||||
|
|||||||
2629
package-lock.json
generated
2629
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
14
public/index.html
Normal file
14
public/index.html
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh-CN">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
|
||||||
|
<title>武术赛事报名系统</title>
|
||||||
|
<link rel="stylesheet" href="./static/index.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
<!-- built files will be auto injected -->
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -34,5 +34,17 @@ module.exports = {
|
|||||||
transpileDependencies: [],
|
transpileDependencies: [],
|
||||||
|
|
||||||
// 生产环境配置
|
// 生产环境配置
|
||||||
productionSourceMap: false
|
productionSourceMap: false,
|
||||||
|
|
||||||
|
// 禁用 gzip 大小报告,避免构建时的文件读取问题
|
||||||
|
css: {
|
||||||
|
extract: true
|
||||||
|
},
|
||||||
|
|
||||||
|
chainWebpack: config => {
|
||||||
|
// 禁用 gzip 大小报告
|
||||||
|
if (process.env.NODE_ENV === 'production') {
|
||||||
|
config.performance.hints(false)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user