refactor: fonts are now bundled with packages (#3227)

This commit is contained in:
Liyas Thomas
2023-08-05 23:42:31 +05:30
committed by GitHub
parent 0e70c28324
commit 5c8ebaff3e
18 changed files with 240 additions and 115 deletions

View File

@@ -4,7 +4,7 @@ import path from "path"
import Icons from "unplugin-icons/vite"
import { defineConfig } from "vite"
import WindiCSS from "vite-plugin-windicss"
import { VitePluginFonts } from "vite-plugin-fonts"
import Unfonts from "unplugin-fonts/vite"
export default defineConfig({
plugins: [
@@ -20,12 +20,21 @@ export default defineConfig({
Icons({
compiler: "vue3"
}),
VitePluginFonts({
google: {
Unfonts({
fontsource: {
families: [
"Inter:wght@400;500;600;700;800",
"Roboto+Mono:wght@400;500",
"Material+Icons",
{
name: "Inter Variable",
variables: ["variable-full"],
},
{
name: "Material Symbols Rounded Variable",
variables: ["variable-full"],
},
{
name: "Roboto Mono Variable",
variables: ["variable-full"],
},
],
},
}),