-
Notifications
You must be signed in to change notification settings - Fork 7
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
我在vuepress中使用遇到了一些问题 #18
Comments
能提供一个最小复现吗。我对 |
https://github.com/u2sb/www.u2sb.com/tree/vite-compression-plugin |
@MonoLogueChi 我发现 |
我好像也发现问题了,使用vite-plugin-compression构建时是否会被压缩,配置使用br压缩,结果是随机的,有的时候会被压缩,有的时候不会被压缩 |
根据我的判断是。vuepress自己的插件改变了 |
暂时的解决方式是用 gulp 写了一个处理脚本,在构建结束后再做静态压缩 |
嗯。可以用gulp写个处理任务。因为目前 |
Bug report 🐞
我想要压缩 vuepress 生成的静态资源,参考 https://v2.vuepress.vuejs.org/zh/reference/bundler/vite.html 配置
也尝试使用,但错误都一样
Version & Environment
Expection
Actual results (or Errors)
构建过程报错
但是尝试使用 https://github.com/vbenjs/vite-plugin-compression 是可以正常构建并压缩的。
The text was updated successfully, but these errors were encountered: