2021-08-01 18:32:24 +00:00
|
|
|
import { defineConfig } from 'vite';
|
2021-07-05 18:32:33 +00:00
|
|
|
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,
|
2021-10-17 18:27:44 +00:00
|
|
|
emptyOutDir: true,
|
|
|
|
outDir: 'dist'
|
2021-07-05 18:32:33 +00:00
|
|
|
},
|
|
|
|
});
|