19 lines
450 B
JavaScript
19 lines
450 B
JavaScript
import react from '@vitejs/plugin-react'
|
|
import { defineConfig } from 'vite'
|
|
import eslintPlugin from 'vite-plugin-eslint'
|
|
import svgr from 'vite-plugin-svgr'
|
|
import svgo from 'vite-plugin-svgo'
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), svgo(), svgr(), eslintPlugin()],
|
|
build: {
|
|
// to output your build into build dir the same as Webpack
|
|
outDir: 'build'
|
|
},
|
|
server: {
|
|
host: '0.0.0.0',
|
|
open: true,
|
|
port: 3000
|
|
}
|
|
})
|