-
从 0.7 升级到 1.0 之后,本地开发正常,生产打包一直报错,以为是 lightningcss 的问题,设置了
|
Beta Was this translation helpful? Give feedback.
Answered by
iwtem
Sep 29, 2024
Replies: 2 comments 3 replies
-
Lightningcss is used in Rsbuild not only to transform CSS code, but also to minify CSS. you can use see https://rsbuild.dev/guide/basic/css-usage#disabling-lightning-css |
Beta Was this translation helpful? Give feedback.
0 replies
-
发现把 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
具体原因是 public 目录下放了一个 css 文件,css 文件可能存在语法不正确,导致 build 一直失败。但是 public 不是不经过编译吗,支持 copy 过去,不知道为什么一直 build 失败。