code/vite.config.js

20 lines
359 B
JavaScript

import {defineConfig} from 'vite';
import solidPlugin from 'vite-plugin-solid';
import windiCSS from 'vite-plugin-windicss';
export default defineConfig({
publicDir: 'static',
plugins: [
solidPlugin(),
windiCSS({
scan: {
dirs: ['.'],
},
}),
],
build: {
target: 'esnext',
polyfillDynamicImport: false,
},
});