vite-plugin-compress
vite-plugin-compress copied to clipboard
Compress your bundle + assets from Vite
vite3.0 + vue3 ``` compressPlugin({ deleteOriginFile: true, algorithm: 'gzip' }) ``` I set the option of deleteOriginFile as true ,then run build,get wrong,like it 
i use the vite2.6.13 and vite-plugin-vue2,1.9.0,the files parsed unicode problem,and cannot correctly display then output all the file just like this: �4�ŒÔV7„‰«î§î§•œõž@º�¿ÕaÑ9å´�y�K+��«†ÎÙ��¡ben÷.µÓƧ(&Žò�ªzU(�� Ñ�íP1gÛŽž� [rJ��Vð’��ƒk]/ó��r(ˆŸ!¢ÈJQì•ÿo#Áô�0ßUM5¾û™9�wU¬˜éØ*‰7”#!Z²�¹™�»I��^£Ô¤$¨yc�ëH¶6œ¤y7Û�¢eæ�«êj�:÷ëåö¹obSH;W{O£Õ…�P;bAHGQb]€�0—µ k45�X…!Å_�ihTQ¥0�’Í�õ&�'Y�+\°�L°Ú ɾ-1ðþ/NGõ8’|ú±×zøEÙ2MÒ²Œfe��ßO~�¤¹Ó»Ç‹é&œgp� °'Ğg�´Æë�_;#9º�.Æìº÷4�F�£w®(×qh
I got this error while trying this plugin. Any idea how to exclude svg's ? I tried :` compress({ exclude: ["*.svg"] })` ✓ 560 modules transformed. [vite:compress] setAssetSource cannot be...
``` error D:\project\node_modules\pngquant-bin: Command failed. Exit code: 1 Command: node lib/install.js Arguments: Directory: D:\project\node_modules\pngquant-bin Output: ‼ getaddrinfo ENOENT raw.githubusercontent.com ‼ pngquant pre-build test failed i compiling from source × Error:...
I am using a simple vite.config.ts like this: ```ts import type { UserConfig } from 'vite'; import { resolve } from "path"; import vue from '@vitejs/plugin-vue'; import compress from 'vite-plugin-compress'...
In our use case the server would want to know if a file is compressed or not so that it can serve the file in a way that the browser...
Heavy dependencies include: - `html-minifier-terser` (in `next` branch only) - `imagemin-pngquant` - `imagemin-webp` (in `next` branch only) - `svgo` All of these take ~5 MB each. **Benefits:** - Less wasted...
## Steps to reproduce - `git clone` into a fresh directory - Install dependencies - Run `pnpm run build` in project root and then in `demo/` ## Error ``` [vite:compress]...