fix: 修复CSS样式未正确引入的问题
- 添加 vue.config.js 确保 CSS 被正确提取
- 修正 .drone.yml 中构建输出路径从 dist/dev/h5 改为 dist/build/h5
🤖 Generated with Claude Code
This commit is contained in:
@@ -15,7 +15,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- npm install --legacy-peer-deps
|
- npm install --legacy-peer-deps
|
||||||
- npm run build:h5
|
- npm run build:h5
|
||||||
- ls -la dist/dev/h5/
|
- ls -la dist/build/h5/
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
@@ -24,7 +24,7 @@ steps:
|
|||||||
username: root
|
username: root
|
||||||
key:
|
key:
|
||||||
from_secret: ssh_key
|
from_secret: ssh_key
|
||||||
source: dist/dev/h5/*
|
source: dist/build/h5/*
|
||||||
target: /var/www/martial-admin-mini
|
target: /var/www/martial-admin-mini
|
||||||
strip_components: 3
|
strip_components: 3
|
||||||
|
|
||||||
|
|||||||
5
vue.config.js
Normal file
5
vue.config.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
module.exports = {
|
||||||
|
css: {
|
||||||
|
extract: true
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user