-
如题,项目中存在大量的 一两kb 的css文件,想要把他们都合并到同一个css文件中,应该如何配置? |
Beta Was this translation helpful? Give feedback.
Answered by
keuby
May 8, 2021
Replies: 2 comments 2 replies
-
可以在 https://github.com/rollup/awesome#css 中找找有没有你需要的插件 |
Beta Was this translation helpful? Give feedback.
1 reply
-
将所有 css 文件捆到一个 css 文件中,可以使用 build.cssCodeSplit 选项,设置为 false 时,可以只创建一个 css 文件。 https://vitejs.dev/config/#build-csscodesplit
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
keuby
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
将所有 css 文件捆到一个 css 文件中,可以使用 build.cssCodeSplit 选项,设置为 false 时,可以只创建一个 css 文件。
https://vitejs.dev/config/#build-csscodesplit