Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit 88c334c

Browse files
committed
register glob base dirs as dependency as well as context-dependency
improves tooling compatibility: now works with postcss-cli and rollup, as well as webpack
1 parent 70c5489 commit 88c334c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/expandTailwindAtRules.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ function expandTailwindAtRules(context, registerDependency) {
120120
} = parseGlob(maybeGlob)
121121

122122
if (isGlob) {
123+
// register base dir as `dependency` _and_ `context-dependency` for
124+
// increased compatibility
125+
registerDependency(path.resolve(base))
123126
registerDependency(path.resolve(base), 'context-dependency')
124127
} else {
125128
registerDependency(path.resolve(maybeGlob))

0 commit comments

Comments
 (0)