upda/server/web/vite.config.ts
Varakh 6e9dedfc70
Some checks failed
/ build (pull_request) Failing after 1m22s
feat(embedded_ui): fully integrate UI into GoLang binary
2024-10-24 22:54:18 +02:00

43 lines
915 B
TypeScript

/// <reference types="vitest" />
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import eslint from 'vite-plugin-eslint2';
import stylelint from 'vite-plugin-stylelint';
import svgrPlugin from 'vite-plugin-svgr';
import viteTsconfigPaths from 'vite-tsconfig-paths';
const stylelintOptions = {
fix: true,
test: true,
dev: true,
build: true
};
const eslintOptions = {
fix: true,
test: true,
dev: true,
build: true
};
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), viteTsconfigPaths(), svgrPlugin(), stylelint(stylelintOptions), eslint(eslintOptions)],
server: {
open: false,
host: '127.0.0.1',
port: 3001
},
build: {
outDir: 'build'
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/setupTests.ts',
coverage: {
reporter: ['text', 'html'],
exclude: ['node_modules/', 'src/setupTests.ts']
}
}
});