Throw error when trying to access defaultConfig the deprecated way to be nice guys

This commit is contained in:
Adam Wathan 2017-11-17 10:37:57 -05:00
parent 436f485897
commit 8f3e80e961

View File

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