forked from tailwindlabs/tailwindcss
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap Tailwind plugins in new plugin to only unwrap config once
- Loading branch information
1 parent
64cda2f
commit b21d258
Showing
11 changed files
with
70 additions
and
62 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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import path from 'path' | ||
|
||
import _ from 'lodash' | ||
import postcss from 'postcss' | ||
|
||
import registerConfigAsDependency from './lib/registerConfigAsDependency' | ||
import substituteTailwindAtRules from './lib/substituteTailwindAtRules' | ||
import evaluateTailwindFunctions from './lib/evaluateTailwindFunctions' | ||
import substituteVariantsAtRules from './lib/substituteVariantsAtRules' | ||
import substituteResponsiveAtRules from './lib/substituteResponsiveAtRules' | ||
import substituteScreenAtRules from './lib/substituteScreenAtRules' | ||
import substituteClassApplyAtRules from './lib/substituteClassApplyAtRules' | ||
|
||
export default function(lazyConfig) { | ||
const config = lazyConfig() | ||
|
||
return postcss([ | ||
substituteTailwindAtRules(config), | ||
evaluateTailwindFunctions(config), | ||
substituteVariantsAtRules(config), | ||
substituteResponsiveAtRules(config), | ||
substituteScreenAtRules(config), | ||
substituteClassApplyAtRules(config), | ||
]) | ||
} |