Replies: 2 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我项目是Vite+Vue3,base使用的绝对路径,打包之后,作为子应用访问,访问时样式全都失效了,如果不做为子应用,单独运行就没有问题,有大佬知道啥原因吗?怎么解决呢?
Beta Was this translation helpful? Give feedback.
All reactions