From 8f3e80e96189ce53a96ff26cd246724e3d0f45a8 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Fri, 17 Nov 2017 10:37:57 -0500 Subject: [PATCH] Throw error when trying to access defaultConfig the deprecated way to be nice guys --- src/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.js b/src/index.js index 5ad314939..7ccdb99a9 100644 --- a/src/index.js +++ b/src/index.js @@ -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