jvcgpt / vite.config.ts
Greums's picture
change the base path to fix sub-paths on builds
2c9a4de
raw
history blame contribute delete
644 Bytes
import {defineConfig} from 'vite';
// import {patchCssModules} from "vite-css-modules"
import preact from '@preact/preset-vite';
// https://vitejs.dev/config/
export default defineConfig({
base: "/",
plugins: [
// patchCssModules(),
preact({ // I had to disable HMR due to un Vite bug (@see https://github.com/privatenumber/vite-css-modules)
devToolsEnabled: false,
reactAliasesEnabled: false,
prefreshEnabled: false
})
],
resolve: {
alias: {
"@": "/src",
},
},
build: {
target: "es2022",
minify: false,
},
});