mirror of https://github.com/mkrhere/pw2
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
480 B
27 lines
480 B
import { defineConfig } from "vite";
|
|
import reactRefresh from "@vitejs/plugin-react-refresh";
|
|
import svgr from "@svgr/rollup";
|
|
import reactJsx from "vite-react-jsx";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
server: {
|
|
port: 10000,
|
|
hmr: {
|
|
port: 10000,
|
|
},
|
|
},
|
|
plugins: [
|
|
reactJsx(),
|
|
reactRefresh(),
|
|
Object.assign(
|
|
svgr({
|
|
// memo: true,
|
|
// icon: true,
|
|
ref: true,
|
|
svgo: false,
|
|
}),
|
|
{ enforce: "pre" } as const,
|
|
),
|
|
],
|
|
});
|
|
|