Error when someone tries to use
This commit is contained in:
parent
ee42b26f94
commit
1d10f20b48
1 changed files with 5 additions and 0 deletions
|
|
@ -13,6 +13,11 @@ export default function(
|
|||
) {
|
||||
return function(css) {
|
||||
css.walkAtRules('tailwind', atRule => {
|
||||
if (atRule.params === 'preflight') {
|
||||
// prettier-ignore
|
||||
throw atRule.error("`@tailwind preflight` is not a valid at-rule in Tailwind v1.0, use `@tailwind base` instead.", { word: 'preflight' })
|
||||
}
|
||||
|
||||
if (atRule.params === 'base') {
|
||||
atRule.before(updateSource(pluginBase, atRule.source))
|
||||
atRule.remove()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue