From 4deed1199dbc4f4490abe7dc0a0e8b23a238c884 Mon Sep 17 00:00:00 2001 From: Developer Date: Sat, 13 Dec 2025 12:45:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DCSS=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E6=9C=AA=E6=AD=A3=E7=A1=AE=E5=BC=95=E5=85=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 vue.config.js 确保 CSS 被正确提取 - 修正 .drone.yml 中构建输出路径从 dist/dev/h5 改为 dist/build/h5 🤖 Generated with Claude Code --- .drone.yml | 4 ++-- vue.config.js | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 vue.config.js diff --git a/.drone.yml b/.drone.yml index c8c6bda..b459ceb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,7 +15,7 @@ steps: commands: - npm install --legacy-peer-deps - npm run build:h5 - - ls -la dist/dev/h5/ + - ls -la dist/build/h5/ - name: deploy image: appleboy/drone-scp @@ -24,7 +24,7 @@ steps: username: root key: from_secret: ssh_key - source: dist/dev/h5/* + source: dist/build/h5/* target: /var/www/martial-admin-mini strip_components: 3 diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..9d2099b --- /dev/null +++ b/vue.config.js @@ -0,0 +1,5 @@ +module.exports = { + css: { + extract: true + } +}