venture-ui/vite.config.ts

20 lines
423 B
TypeScript
Raw Normal View History

2023-02-14 11:45:39 -06:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import eslint from "vite-plugin-eslint";
2023-01-31 16:36:37 -06:00
// https://vitejs.dev/config/
export default defineConfig({
2023-02-14 11:45:39 -06:00
server: {
host: true,
},
2023-01-31 16:36:37 -06:00
plugins: [
2023-02-14 11:45:39 -06:00
{ ...react(), ...eslint(), apply: "build" },
{
...react(),
...eslint({ failOnWarning: false, failOnError: true }),
apply: "serve",
enforce: "post",
},
2023-01-31 16:36:37 -06:00
],
});