mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Throw error when trying to access defaultConfig the deprecated way to be nice guys
This commit is contained in:
parent
436f485897
commit
8f3e80e961
@ -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…
x
Reference in New Issue
Block a user