Skip to content

Commit 8f3e80e

Browse files
committed
Throw error when trying to access defaultConfig the deprecated way to be nice guys
1 parent 436f485 commit 8f3e80e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,8 @@ const plugin = postcss.plugin('tailwind', config => {
4646
)
4747
})
4848

49+
plugin.defaultConfig = function () {
50+
throw new Error("`require('tailwindcss').defaultConfig()` is no longer a function, access it instead as `require('tailwindcss/defaultConfig')()`.")
51+
}
52+
4953
module.exports = plugin

0 commit comments

Comments
 (0)