mirror of
https://github.com/RSSNext/Folo.git
synced 2026-10-29 12:12:59 +08:00
chore: fix tailwind resolve in extension
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
/* @moduleResolution bundler */
|
||||
import "./tw-css-plugin"
|
||||
|
||||
import path, { resolve } from "node:path"
|
||||
import path, { dirname, resolve } from "node:path"
|
||||
import { fileURLToPath } from "node:url"
|
||||
|
||||
import { getIconCollections, iconsPlugin } from "@egoist/tailwindcss-icons"
|
||||
import { cleanupSVG, importDirectorySync, isEmptyColor, parseColors, runSVGO } from "@iconify/tools"
|
||||
@@ -12,7 +13,9 @@ import type { Config } from "tailwindcss/types/config"
|
||||
import { withUIKit } from "tailwindcss-uikit-colors/src/macos/tailwind"
|
||||
import { workspaceRootSync } from "workspace-root"
|
||||
|
||||
const workspaceRoot = workspaceRootSync()
|
||||
const _dirname =
|
||||
typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url))
|
||||
const workspaceRoot = workspaceRootSync(_dirname)
|
||||
const twConfig = {
|
||||
darkMode: ["class", '[data-theme="dark"]'],
|
||||
content: [],
|
||||
|
||||
Reference in New Issue
Block a user