vite and react scaffold
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
build: {
|
||||
outDir: 'dist/embed',
|
||||
emptyOutDir: true,
|
||||
rollupOptions: {
|
||||
input: 'src/embed.tsx',
|
||||
output: {
|
||||
entryFileNames: 'embed.js',
|
||||
assetFileNames: 'embed.[ext]',
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
port: 5174,
|
||||
proxy: {
|
||||
'/api': 'http://localhost:8090',
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user