code/vite.config.ts

24 lines
481 B
TypeScript
Raw Permalink Normal View History

2021-08-01 18:32:24 +00:00
import { defineConfig } from 'vite';
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: [
solid({
adapter: cloudflare({ sourceMap: false }),
routesDir: './pages',
}),
2021-07-12 08:23:02 +00:00
windiCSS({
scan: {
dirs: ['./src'],
2021-07-12 08:23:02 +00:00
},
}),
],
2021-07-05 18:32:33 +00:00
build: {
target: 'modules',
emptyOutDir: true,
2021-07-05 18:32:33 +00:00
},
});