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.
24 lines
389 B
24 lines
389 B
3 years ago
|
import { defineConfig } from "vite";
|
||
|
import reactRefresh from "@vitejs/plugin-react-refresh";
|
||
|
import svgr from "@svgr/rollup";
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
server: {
|
||
|
port: 10000,
|
||
|
hmr: {
|
||
|
port: 10000,
|
||
|
},
|
||
|
},
|
||
|
plugins: [
|
||
|
reactRefresh(),
|
||
|
Object.assign(
|
||
|
svgr({
|
||
|
ref: true,
|
||
|
svgo: false,
|
||
|
}),
|
||
|
{ enforce: "pre" } as const,
|
||
|
),
|
||
|
],
|
||
|
});
|