forked from heybourn/headwind
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e796696
commit 8364567
Showing
4 changed files
with
213 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,14 +88,11 @@ function loadTailwindConfig(baseDir, tailwindConfigPath) { | |
let resolveConfig = resolveConfigFallback | ||
let loadConfig = loadConfigFallback | ||
let tailwindConfig = { | ||
// all html, css, and js files in the workspace | ||
content: ['**/*.html', '**/*.css', '**/*.js'], | ||
plugins: [ | ||
], | ||
corePlugins: { | ||
preflight: false, | ||
}, | ||
} | ||
// all html, css, and js files in the workspace | ||
content: ['**/*.html', '**/*.css', '**/*.js'], | ||
plugins: [ | ||
] | ||
} | ||
|
||
try { | ||
let pkgDir = path.dirname(resolveFrom(baseDir, 'tailwindcss/package.json')) | ||
|
@@ -113,7 +110,7 @@ function loadTailwindConfig(baseDir, tailwindConfigPath) { | |
// Prior to `[email protected]` this won't exist so we load it last | ||
loadConfig = require(path.join(pkgDir, 'loadConfig')) | ||
} catch { | ||
} | ||
} | ||
|
||
if (tailwindConfigPath) { | ||
clearModule(tailwindConfigPath) | ||
|
@@ -146,8 +143,8 @@ function getConfigPath(options, baseDir) { | |
|
||
let configPath | ||
try { | ||
// This is a hack because typescript does not correctly resolve the type of the import | ||
const useEscalade = /** @type {escalade.default} */(/** @type {unknown} */(escalade)); | ||
// This is a hack because typescript does not correctly resolve the type of the import | ||
const useEscalade = /** @type {escalade.default} */(/** @type {unknown} */(escalade)); | ||
configPath = useEscalade(baseDir, (_dir, names) => { | ||
if (names.includes('tailwind.config.js')) { | ||
return 'tailwind.config.js' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.