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
533 B
24 lines
533 B
import { defineConfig } from "vite";
|
|
import { resolve } from "path";
|
|
import react from "@vitejs/plugin-react";
|
|
import svgr from "@svgr/rollup";
|
|
import { visualizer as visualiser } from "rollup-plugin-visualizer";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
server: { port: 10000 },
|
|
plugins: [
|
|
react(),
|
|
Object.assign(svgr({ ref: true, svgo: false }), {
|
|
enforce: "pre",
|
|
} as const),
|
|
visualiser(),
|
|
],
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(__dirname, "index.html"),
|
|
},
|
|
},
|
|
},
|
|
});
|
|
|