fix: allow absolute paths to tailwind config

This commit is contained in:
Mark Lawlor
2022-05-25 21:51:14 +10:00
parent 582d8c0103
commit 0421a9110e

View File

@@ -1,4 +1,4 @@
import { join } from "node:path";
import { resolve } from "node:path";
import { existsSync } from "node:fs";
import resolveTailwindConfig from "tailwindcss/resolveConfig";
@@ -17,7 +17,7 @@ export function getTailwindConfig(
const { tailwindConfigPath } = options;
let userConfig;
const fullConfigPath = join(
const fullConfigPath = resolve(
cwd,
tailwindConfigPath || "./tailwind.config.js"
);