From ae0155eb2cbabc242a462c8bdd49ca39eb48ef19 Mon Sep 17 00:00:00 2001 From: zhengwr Date: Sat, 20 Jun 2026 09:33:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20editor.html=20CSS=20=E6=94=B9=20imp?= =?UTF-8?q?ort=20=E8=BF=9B=20bundle=EF=BC=8C=E4=BF=AE=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=20404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit editor.html 三条 /node_modules/*.css 绝对 link 在 vite build 后不入 dist, preview/静态托管下 404 → 设计器裸样式。改由 src/editor/main.tsx import, rollup 收集进 dist/assets/*.css。dev 不受影响(vite 转译同源)。 注:amis-ui/amis-editor-core 的 exports 字段不暴露 css 子路径,裸包名 import 被 rollup 拒绝, 故用相对 node_modules 路径直引真实 css 文件。 REQUIRED-before-any-hosted-demo, OPTIONAL-for-pure-dev。 Co-Authored-By: Claude Opus 4.8 (1M context) --- editor.html | 5 +---- src/editor/main.tsx | 10 ++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/editor.html b/editor.html index ef99b7a..e08a2ff 100644 --- a/editor.html +++ b/editor.html @@ -5,10 +5,7 @@ EIP4 页面设计器 - - - - +