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

imagemin error #7

Open
823239259 opened this issue Jul 6, 2021 · 11 comments
Open

imagemin error #7

823239259 opened this issue Jul 6, 2021 · 11 comments

Comments

@823239259
Copy link

I encountered this problem, the size of the picture cannot be compressed.

viteImagemin({ gifsicle: { optimizationLevel: 7, interlaced: false }, optipng: { optimizationLevel: 7 }, mozjpeg: { quality: 20 }, pngquant: { quality: [0.8, 0.9], speed: 4 }, svgo: { plugins: [ { name: "removeViewBox" }, { name: "removeEmptyAttrs", active: false } ] } })

image

@anncwb
Copy link
Collaborator

anncwb commented Jul 15, 2021

I can try, can you give me a Reproduce?
image

@love51854560
Copy link

I can try, can you give me a Reproduce?
image

I encountered same problem,It can be compressed successfully locally,but failed in jenkins:

In local:
✨ [vite-plugin-imagemin]- compressed image resource successfully:
dist/assets/logo.7ffb94ff.png -46% 12.06kb / tiny: 6.60kb
dist/assets/background.3dfa46d5.png -97% 2349.62kb / tiny: 92.36kb

In jenkins:
imagemin error:/var/jenkins_home/workspace/tsp-web/dist/assets/logo.7ffb94ff.png
imagemin error:/var/jenkins_home/workspace/tsp-web/dist/assets/background.3dfa46d5.png

@anncwb
Copy link
Collaborator

anncwb commented Aug 1, 2021

@phillduffy
Copy link

I have been having this issue for a few weeks, I tried disabling the svgo section of my vite.config.js and I am back in business...

@Minori-ty
Copy link

同样是不起作用,测试了几个项目都是不起作用。不知道该怎么给你复现的demo

@cm159289
Copy link

oh,还是不行,都是ts配置才行吗

@lxy030988
Copy link

image

@lxy030988
Copy link

我也碰到这个问题了

@shmilytp
Copy link

请问这个问题有人解决吗

@Minori-ty
Copy link

请问这个问题有人解决吗

用yarn下载

@FarAfield
Copy link

jenkins打包遇到过,服务器内存溢出,报错信息还有一段这样的Command failed with ENOMEM

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

9 participants