Merge pull request 'fix(storybook): type the font path plugin as a Vite Plugin' (#22) from feat/storybook-ui-refinement into main
Deploy Storybook / deploy (push) Successful in 58s
Deploy Storybook / deploy (push) Successful in 58s
Reviewed-on: #22
This commit was merged in pull request #22.
This commit is contained in:
commit
ca4b696897
1 file changed
+2
-1
+2
-1
@@ -2,6 +2,7 @@ import type { StorybookConfig } from "@storybook/react-vite"
|
||||
import { readFileSync, realpathSync } from "node:fs"
|
||||
import { fileURLToPath } from "node:url"
|
||||
import path from "node:path"
|
||||
import type { Plugin } from "vite"
|
||||
|
||||
// Checkouts that share another checkout's node_modules (a linked git worktree whose node_modules is a junction) also
|
||||
// inherit that checkout's node_modules/@hm-design/* links. Those links point at the other checkout's packages/ui and its
|
||||
@@ -35,7 +36,7 @@ const localUiAliases = [
|
||||
const UI_DIST_FONT_URL = /[^"'()\\\s]*\/ui\/dist\/fonts\/NotoSansKR-variable\.ttf/g
|
||||
const FONT_STATIC_URL = "/fonts/NotoSansKR-variable.ttf"
|
||||
|
||||
const hmUiThemeFontPath = {
|
||||
const hmUiThemeFontPath: Plugin = {
|
||||
name: "hm-ui-theme-font-path",
|
||||
apply: "serve" as const,
|
||||
enforce: "post" as const,
|
||||
|
||||
Reference in new issue
Block a user