| 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 | |
| }) | |
| ], | |
| build: { | |
| target: "es2022", | |
| minify: false, | |
| }, | |
| }); | |