hellof2e / quark-core

Fast 4Kb size! Web Components with JSX. (Web Components 构建工具,4kb!构建跨技术栈组件)
https://quark-ecosystem.github.io/quarkc-docs/#/
MIT License
321 stars 27 forks source link

静态资源打包到js导致构建后js体积过大问题 #56

Closed juleide closed 8 months ago

juleide commented 8 months ago

image image

如果在index.less引用了比较大的图片当做背景图,组件打包后统一把图片转换成base64打包到js中,导致构建后的js体积太大,请问这种情况如何解决?

yuhaiyang1 commented 8 months ago

可以查看 vite 官方文档,根据自己的需求改下这个配置吧 image