mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
* Update localforage, remove query-string * Update fontawesome and flag-icons * Update formatjs * Update axios and videojs * Update apollo client and graphql * Update bootstrap and react * Update polyfills * Update vite * Update ESLint * Update stylelint * Update configs * Rebuild yarn.lock
37 lines
741 B
JavaScript
37 lines
741 B
JavaScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
import viteCompression from "vite-plugin-compression";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
base: "",
|
|
build: {
|
|
outDir: "build",
|
|
reportCompressedSize: false,
|
|
},
|
|
optimizeDeps: {
|
|
entries: "src/index.tsx",
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
cors: false,
|
|
},
|
|
publicDir: "public",
|
|
assetsInclude: ["**/*.md"],
|
|
plugins: [
|
|
react({
|
|
babel: {
|
|
compact: true,
|
|
},
|
|
}),
|
|
tsconfigPaths(),
|
|
viteCompression({
|
|
algorithm: "gzip",
|
|
disable: false,
|
|
deleteOriginFile: true,
|
|
filter: /\.(js|json|css|svg|md)$/i,
|
|
}),
|
|
],
|
|
});
|