mirror of
https://github.com/HananoshikaYomaru/openfreebooks.git
synced 2026-11-12 20:45:52 +00:00
19 lines
507 B
TypeScript
19 lines
507 B
TypeScript
import { defineConfig } from "vite";
|
|
import solid from "vite-plugin-solid";
|
|
|
|
export default defineConfig({
|
|
plugins: [solid()],
|
|
build: {
|
|
outDir: "themes/openfreebooks/static",
|
|
emptyOutDir: false,
|
|
rollupOptions: {
|
|
input: "frontend/src/main.tsx",
|
|
output: {
|
|
entryFileNames: "js/bundle.js",
|
|
chunkFileNames: "js/[name]-[hash].js",
|
|
assetFileNames: (info) =>
|
|
info.name?.endsWith(".css") ? "js/katex.css" : "js/[name][extname]",
|
|
},
|
|
},
|
|
},
|
|
});
|