Closed ptmkenny closed 1 year ago
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 :)
I will follow this issue. Because the behavior of setting dir in rollupOption is not the same as directly setting outDir
Thank you for the amazingly fast response!
I tried with outDir
instead of output: dir
and all the files are compressed. I will try with this and see if I can get it working.
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!