alibaba / ice

🚀 ice.js: The Progressive App Framework Based On React(基于 React 的渐进式应用框架)

Home Page:https://ice.work

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[SSG] 打包后的html没有link css文件,而是通过js动态引入的css文件导致页面加载的时候只有dom结构没有样式

maskTAQ opened this issue · comments

Describe the bug

image

之前的css文件在打包后是写在html文件中的,但是因为重新执行的npm i,打包后的产物就没有了,定位不到问题是出在哪个模块

Expected behavior

ssg模式打包后能在html文件中引入css文件而不是通过js来引入

Actual behavior

No response

Version of ice.js

2.6.6

Content of build.json or ice.config.mts

No response

Additional context

No response

提供先复现 demo,另外 2.6.6 版本推荐升级到 3.x 版本

推荐优先使用 3.x 版本,或者提供复现 demo 后重启 issue