Vite2项目优化记录

demongao
1452
2022-04-06

vite-plugin-imagemin

vite-plugin-imagemin
node version: >=12.0.0

vite version: >=2.0.0

yarn add vite-plugin-imagemin -D

国内安装 package.json

"resolutions": {
    "bin-wrapper": "npm:bin-wrapper-china"
  }

vite-plugin-compress