Skip to content

Commit 1d10f20

Browse files
committed
Error when someone tries to use
1 parent ee42b26 commit 1d10f20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/substituteTailwindAtRules.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ export default function(
1313
) {
1414
return function(css) {
1515
css.walkAtRules('tailwind', atRule => {
16+
if (atRule.params === 'preflight') {
17+
// prettier-ignore
18+
throw atRule.error("`@tailwind preflight` is not a valid at-rule in Tailwind v1.0, use `@tailwind base` instead.", { word: 'preflight' })
19+
}
20+
1621
if (atRule.params === 'base') {
1722
atRule.before(updateSource(pluginBase, atRule.source))
1823
atRule.remove()

0 commit comments

Comments
 (0)