Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build后的wxss没有做压缩处理,需要怎么配置才会压缩呢? #284

Open
wangzhengbo opened this issue Jul 29, 2019 · 2 comments

Comments

@wangzhengbo
Copy link

build后的wxss没有做压缩处理,需要怎么配置才会压缩呢?

@bigmeow
Copy link

bigmeow commented Jul 30, 2019

是小程序原生组件的wxss文件没有压缩是吧?.vue文件肯定是压缩过的
先这样处理,勾选‘上传时自动压缩混淆’
image

@wangzhengbo
Copy link
Author

构建时生成到dist_wechat目录下的wxss和wxml没做压缩,在预览时提示包超过大小。上传时是会做一次压缩,能在构建时压缩一次最好了,避免包大小问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants