This commit is contained in:
2026-04-05 20:52:32 +03:30
commit 3579e03646
12 changed files with 2749 additions and 0 deletions

40
vite.config.js Normal file
View File

@@ -0,0 +1,40 @@
import { defineConfig } from "vite";
export default defineConfig({
base: "./",
build: {
target: "es2018",
cssCodeSplit: false,
minify: "terser",
terserOptions: {
compress: {
passes: 3,
drop_console: true,
drop_debugger: true
},
format: {
comments: false
}
},
rollupOptions: {
output: {
manualChunks: undefined,
codeSplitting: false,
entryFileNames: "graphiql.js",
chunkFileNames: "graphiql.js",
assetFileNames: (assetInfo) => {
if (assetInfo?.name && assetInfo.name.endsWith(".css")) {
return "graphiql.css";
}
return "assets/[name][extname]";
}
}
}
}
});