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
9b798b3
commit e796696
Showing
1 changed file
with
11 additions
and
2 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 |
---|---|---|
|
@@ -87,7 +87,15 @@ function loadTailwindConfig(baseDir, tailwindConfigPath) { | |
let generateRules = generateRulesFallback | ||
let resolveConfig = resolveConfigFallback | ||
let loadConfig = loadConfigFallback | ||
let tailwindConfig = {} | ||
let tailwindConfig = { | ||
// all html, css, and js files in the workspace | ||
content: ['**/*.html', '**/*.css', '**/*.js'], | ||
plugins: [ | ||
], | ||
corePlugins: { | ||
preflight: false, | ||
}, | ||
} | ||
|
||
try { | ||
let pkgDir = path.dirname(resolveFrom(baseDir, 'tailwindcss/package.json')) | ||
|
@@ -104,7 +112,8 @@ function loadTailwindConfig(baseDir, tailwindConfigPath) { | |
|
||
// Prior to `[email protected]` this won't exist so we load it last | ||
loadConfig = require(path.join(pkgDir, 'loadConfig')) | ||
} catch {} | ||
} catch { | ||
} | ||
|
||
if (tailwindConfigPath) { | ||
clearModule(tailwindConfigPath) | ||
|