Error when someone tries to use

This commit is contained in:
Adam Wathan 2019-06-01 15:51:02 -04:00
parent ee42b26f94
commit 1d10f20b48

View File

@ -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()