* to vite * fx customSnackBar test * fix emptyCard test * clean debug * fix status test * fix customDialogTitle test * fix CustomButton test * fix customDialog test * fix some of customInput tests * add missing dependency * fix missing dependency * testing-library is dropped support for react 17, so we need to stick with 12.1.2 * fix tablehead test * fix toobar test * remove unused test * fix table tests * fix simple menu test * fix layout test * fix grid test * fix custom input test * remove unused file * add missing coverage dependency * upgrade electron * remove unused file
26 lines
575 B
TypeScript
26 lines
575 B
TypeScript
import { defineConfig } from 'vite';
|
|
import reactRefresh from '@vitejs/plugin-react';
|
|
const svgrPlugin = require('vite-plugin-svgr');
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
base: '',
|
|
// This changes the out put dir from dist to build
|
|
// comment this out if that isn't relevant for your project
|
|
build: {
|
|
outDir: 'build',
|
|
},
|
|
server: {
|
|
port: 3001,
|
|
},
|
|
plugins: [
|
|
reactRefresh(),
|
|
svgrPlugin({
|
|
svgrOptions: {
|
|
icon: true,
|
|
// ...svgr options (https://react-svgr.com/docs/options/)
|
|
},
|
|
}),
|
|
],
|
|
});
|