mirror of
https://github.com/sasjs/server.git
synced 2026-01-05 05:40:06 +00:00
chore(web): switched built tool, webpack to Vite
This commit is contained in:
17
web/vite.config.js
Normal file
17
web/vite.config.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { createHtmlPlugin } from 'vite-plugin-html'
|
||||
import envCompatible from 'vite-plugin-env-compatible'
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
outDir: './build'
|
||||
},
|
||||
plugins: [
|
||||
react(),
|
||||
createHtmlPlugin({
|
||||
template: './src/index.html'
|
||||
}),
|
||||
envCompatible({ prefix: '' })
|
||||
]
|
||||
})
|
||||
Reference in New Issue
Block a user