stash/ui/v2.5/vite.config.js

28 lines
560 B
JavaScript
Raw Normal View History

import { defineConfig } from 'vite'
import tsconfigPaths from "vite-tsconfig-paths";
import viteCompression from 'vite-plugin-compression';
// https://vitejs.dev/config/
export default defineConfig({
base: "",
build: {
outDir: 'build',
},
optimizeDeps: {
entries: "src/index.tsx"
},
server: {
cors: false
},
publicDir: 'public',
assetsInclude: ['**/*.md'],
plugins: [tsconfigPaths(),
viteCompression({
algorithm: 'gzip',
disable: false,
deleteOriginFile: true,
filter: /\.(js|json|css|svg|md)$/i
})
],
})