chs/vite.config.ts
2022-10-31 13:25:32 +00:00

21 lines
517 B
TypeScript

import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import devtools from 'solid-devtools/vite';
export default defineConfig({
plugins: [
solidPlugin(),
devtools({
// Will automatically add names when creating signals, memos, stores, or mutables
name: true,
}),
],
server: {
hmr: {
clientPort: parseInt(process.env.CLIENT_PORT || '5173'),
},
},
build: {
target: 'esnext',
},
});