Refactor as SSG using Vite+React

This commit is contained in:
Michael Bradley 2025-01-03 00:50:52 +13:00
parent a22071815d
commit 6830bd41dd
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8
25 changed files with 3076 additions and 282 deletions

25
vite.config.ts Normal file
View file

@ -0,0 +1,25 @@
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,
},
},
}),
],
});