init
This commit is contained in:
40
vite.config.js
Normal file
40
vite.config.js
Normal 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]";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user