We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64d3cf5 + 2e34df9 commit 14f1ba6Copy full SHA for 14f1ba6
src/lib/substituteTailwindAtRules.js
@@ -13,9 +13,13 @@ export default function(config) {
13
14
css.walkAtRules('tailwind', atRule => {
15
if (atRule.params === 'preflight') {
16
- atRule.before(
17
- postcss.parse(fs.readFileSync(`${__dirname}/../../css/preflight.css`, 'utf8'))
+ const preflightTree = postcss.parse(
+ fs.readFileSync(`${__dirname}/../../css/preflight.css`, 'utf8')
18
)
19
+
20
+ preflightTree.walk(node => (node.source = atRule.source))
21
22
+ atRule.before(preflightTree)
23
atRule.remove()
24
}
25
0 commit comments