code/vite.config.js

20 lines
394 B
JavaScript
Raw Normal View History

2021-07-05 18:32:33 +00:00
import {defineConfig} from 'vite';
import solidPlugin from 'vite-plugin-solid';
import windiCSS from 'vite-plugin-windicss';
export default defineConfig({
2021-07-12 08:23:02 +00:00
publicDir: 'static',
plugins: [
solidPlugin(),
windiCSS({
scan: {
2021-07-13 09:24:26 +00:00
dirs: ['./components', './layouts', './pages'],
2021-07-12 08:23:02 +00:00
},
}),
],
2021-07-05 18:32:33 +00:00
build: {
target: 'esnext',
polyfillDynamicImport: false,
},
});