From 327af1745e3d63734a11b14acb14a0da90cc5d41 Mon Sep 17 00:00:00 2001 From: Mark van den Broek Date: Mon, 27 May 2019 21:19:31 +0200 Subject: [PATCH] Return early when talwind.config.js is found. --- src/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index 519a864..f0eb828 100644 --- a/src/index.js +++ b/src/index.js @@ -24,12 +24,14 @@ class Tailwind { return; } - if (this.seesTailwindConfig('./tailwind.js')) { - this.configPath = './tailwind.js'; - } - if (this.seesTailwindConfig('./tailwind.config.js')) { this.configPath = './tailwind.config.js'; + + return; + } + + if (this.seesTailwindConfig('./tailwind.js')) { + this.configPath = './tailwind.js'; } }