refactor: fonts are now bundled with packages (#3227)
This commit is contained in:
@@ -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"],
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user