Migrate Flask React template into Forge
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
export default defineConfig({
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
loadPaths: ['node_modules'],
|
||||
quietDeps: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
proxy: { '/api': 'http://localhost:5000' },
|
||||
port: 8080
|
||||
},
|
||||
plugins: [react()],
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
globals: true,
|
||||
setupFiles: './src/test/setup.js',
|
||||
include: ['src/**/*.{test,spec}.{js,jsx}'],
|
||||
css: true,
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
reporter: ['text', 'html'],
|
||||
include: ['src/**/*.{js,jsx}'],
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user