Skip to content

Commit

Permalink
Return early when talwind.config.js is found.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdnbrk committed May 27, 2019
1 parent 3d96b69 commit 327af17
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}

Expand Down

0 comments on commit 327af17

Please sign in to comment.