mirror of
https://github.com/balzack/databag.git
synced 2025-05-01 22:15:32 +00:00
25 lines
556 B
TypeScript
25 lines
556 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tsConfigPaths from 'vite-tsconfig-paths'
|
|
import { EsLinter, linterPlugin } from 'vite-plugin-linter'
|
|
import svgrPlugin from 'vite-plugin-svgr'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig(configEnv => ({
|
|
plugins: [
|
|
react(),
|
|
tsConfigPaths(),
|
|
linterPlugin({
|
|
include: ['./src/**/*.{ts,tsx}'],
|
|
linters: [new EsLinter({ configEnv })],
|
|
}),
|
|
svgrPlugin(),
|
|
],
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
preview: {
|
|
port: 8080,
|
|
},
|
|
}))
|