npm install --save-dev unplugin-fonts
import { defineConfig } from "vite";
import Unfonts from "unplugin-fonts/vite";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
Unfonts({
google: {
families: [
{
name: "Nunito",
styles: "wght@300;400;700",
},
],
},
}),
],
});