25 lines
534 B
TypeScript
25 lines
534 B
TypeScript
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
import { createHtmlPlugin } from "vite-plugin-html";
|
|
import { imagetools } from "vite-imagetools";
|
|
import svgr from "vite-plugin-svgr";
|
|
|
|
export default defineConfig({
|
|
base: "https://mmbradley.ca/",
|
|
clearScreen: false,
|
|
plugins: [
|
|
createHtmlPlugin({
|
|
minify: true,
|
|
}),
|
|
imagetools(),
|
|
react(),
|
|
svgr({
|
|
svgrOptions: {
|
|
plugins: ["@svgr/plugin-svgo", "@svgr/plugin-jsx"],
|
|
svgoConfig: {
|
|
floatPrecision: 2,
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
});
|