You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your feedback. I create a minimalist example in my local environment. And i using your conf. It's don't look right.According your conf. I guess you want to define the output directory by custom. I think you can set outDir for build instead of setting dir on ontput in rollupOptions :)
See. According this line. we can know rollupOptions will override all Vite.js default output option. And vite-plugin-compression2 is using build.outDir.I can't find a good way to balance it :(
Bug report 🐞
When vite -> build -> output -> dir is not
dist
, most of the files don't get compressed.My app has 25 JS files.
When
dir: 'build',
, only 1 file is gzipped.When
dir: 'test_directory',
, only 1 file is gzipped.When
dir: 'dist',
, all 25 files are gzipped.So it seems the problem is that only
dist
is supported as a build directory.Using 0.8.4, my
vite.config.ts
:Version & Environment
0.8.4, macOS + Ubuntu
Thanks for creating this awesome plugin!
The text was updated successfully, but these errors were encountered: