chs/vite.config.ts

22 lines
517 B
TypeScript
Raw Permalink Normal View History

2022-10-31 13:25:32 +00:00
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',
},
});