12 lines
358 B
TypeScript
12 lines
358 B
TypeScript
|
import { defineConfig } from 'vite';
|
||
|
import react from '@vitejs/plugin-react';
|
||
|
import eslint from 'vite-plugin-eslint';
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [
|
||
|
{...react(), ...eslint(), apply: 'build'},
|
||
|
{...react(), ...eslint({ failOnWarning: false, failOnError: false }), apply: 'serve', enforce: 'post'},
|
||
|
],
|
||
|
});
|