2021-08-01 18:32:24 +00:00
|
|
|
import { defineConfig } from 'vite';
|
2022-12-17 10:24:26 +00:00
|
|
|
import solid from 'solid-start/vite';
|
|
|
|
import cloudflare from 'solid-start-cloudflare-pages';
|
2021-07-05 18:32:33 +00:00
|
|
|
import windiCSS from 'vite-plugin-windicss';
|
|
|
|
|
|
|
|
export default defineConfig({
|
2021-07-12 08:23:02 +00:00
|
|
|
publicDir: 'static',
|
|
|
|
plugins: [
|
2022-12-17 10:24:26 +00:00
|
|
|
solid({
|
|
|
|
adapter: cloudflare({ sourceMap: false }),
|
|
|
|
routesDir: './pages',
|
|
|
|
}),
|
2021-07-12 08:23:02 +00:00
|
|
|
windiCSS({
|
|
|
|
scan: {
|
2022-12-17 10:24:26 +00:00
|
|
|
dirs: ['./src'],
|
2021-07-12 08:23:02 +00:00
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
2021-07-05 18:32:33 +00:00
|
|
|
build: {
|
2022-12-17 10:24:26 +00:00
|
|
|
target: 'modules',
|
2021-10-17 18:27:44 +00:00
|
|
|
emptyOutDir: true,
|
2021-07-05 18:32:33 +00:00
|
|
|
},
|
|
|
|
});
|