Skip to content

Commit

Permalink
disable preflight core plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Trapfether committed Nov 29, 2023
1 parent 9b798b3 commit e796696
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand All @@ -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)
Expand Down

0 comments on commit e796696

Please sign in to comment.