refactor(vite.config): centralized configs
This commit is contained in:
1 parent
446a161565
commit
01ceddaf00
5 files changed
+13
-13
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import { join } from 'path'
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import pkg from '../package.json'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
root: join(__dirname, '../src/react-ts'),
|
||||
plugins: [react()],
|
||||
base: './',
|
||||
build: {
|
||||
emptyOutDir: true,
|
||||
minify: false,
|
||||
outDir: join(__dirname, '../dist/react-ts'),
|
||||
},
|
||||
server: {
|
||||
host: pkg.env.HOST,
|
||||
port: pkg.env.PORT,
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user