nonzzz / vite-plugin-compression

vite plugin. compress your bundle file.
MIT License
171 stars 10 forks source link

Feature: Should handle multiple output #27

Closed nonzzz closed 1 year ago

nonzzz commented 1 year ago

Feature request 🚀

Expected:

Vite set multiple output should be support. see #26. If user pass the rollupOptions. the preset outDir won't be work. So what about passing in multiple outputs?

Examples:


export default defineConfig({
 build: {
    rollupOptions: {
      output: [{ dir: 'es' }, { dir: 'cjs' }]
    }
  },
})