Throw error when trying to access defaultConfig the deprecated way to be nice guys
This commit is contained in:
parent
436f485897
commit
8f3e80e961
1 changed files with 4 additions and 0 deletions
|
|
@ -46,4 +46,8 @@ const plugin = postcss.plugin('tailwind', config => {
|
|||
)
|
||||
})
|
||||
|
||||
plugin.defaultConfig = function () {
|
||||
throw new Error("`require('tailwindcss').defaultConfig()` is no longer a function, access it instead as `require('tailwindcss/defaultConfig')()`.")
|
||||
}
|
||||
|
||||
module.exports = plugin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue