-
How to specify the directory for compression, can it only be dist? |
Beta Was this translation helpful? Give feedback.
Answered by
nonzzz
Aug 13, 2024
Replies: 1 comment
-
Plugin will automatically get your output directory. In fact only set vite-plugin-compression/src/index.ts Lines 36 to 59 in b7d4f6d import { defineConfig } from 'vite'
export default defineConfig({
// ... your config
build: {
outDir: 'target'
}
})
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nonzzz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Plugin will automatically get your output directory. In fact only set
build.outDir
in your vite's config.vite-plugin-compression/src/index.ts
Lines 36 to 59 in b7d4f6d