Skip to content

Commit

Permalink
fix: allow absolute paths to tailwind config
Browse files Browse the repository at this point in the history
  • Loading branch information
marklawlor committed May 25, 2022
1 parent 582d8c0 commit 0421a91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/babel/utils/get-tailwind-config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { join } from "node:path";
import { resolve } from "node:path";
import { existsSync } from "node:fs";

import resolveTailwindConfig from "tailwindcss/resolveConfig";
Expand All @@ -17,7 +17,7 @@ export function getTailwindConfig(
const { tailwindConfigPath } = options;

let userConfig;
const fullConfigPath = join(
const fullConfigPath = resolve(
cwd,
tailwindConfigPath || "./tailwind.config.js"
);
Expand Down

0 comments on commit 0421a91

Please sign in to comment.