Replies: 3 comments
-
同样的问题,打包后的HTmL中Link引入的样式不生效。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
原因是主应用的head中没有link你子应用的css文件,需要自己手动去获取子应用index.html里的link标签然后插入到主应用的head标签中即可解决 |
Beta Was this translation helpful? Give feedback.
0 replies
-
确实这样的。我遇到的问题是:
这就有样式信息。
这就,样式丢失。 结果就纠结两晚。 看了前面 作者的 提示信息以后我受到了启发,让AI帮我改了改,终于好像是对啦。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我项目是Vite+Vue3,base使用的绝对路径,打包之后,作为子应用访问,访问时样式全都失效了,如果不做为子应用,单独运行就没有问题,有大佬知道啥原因吗?怎么解决呢?
Beta Was this translation helpful? Give feedback.
All reactions