fix: add CSS template and fix drone build config

This commit is contained in:
Developer
2025-12-13 11:39:20 +08:00
parent 6ea1c0ca8e
commit a0f7a6a757
2 changed files with 20 additions and 3 deletions

View File

@@ -10,9 +10,12 @@ trigger:
steps:
- name: build
image: node:16-alpine
environment:
NODE_OPTIONS: --max-old-space-size=4096
commands:
- npm install
- ./node_modules/.bin/cross-env NODE_ENV=production UNI_PLATFORM=h5 ./node_modules/.bin/vue-cli-service build
- npm install --legacy-peer-deps
- npm run build:h5
- ls -la dist/dev/h5/
- name: deploy
image: appleboy/drone-scp
@@ -21,7 +24,7 @@ steps:
username: root
key:
from_secret: ssh_key
source: dist/build/h5/*
source: dist/dev/h5/*
target: /var/www/martial-admin-mini
strip_components: 3

14
public/index.html Normal file
View 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>