Skip to content

Commit

Permalink
feat: 🎸 add option --tailwindcss-config-path
Browse files Browse the repository at this point in the history
  • Loading branch information
shufo committed Sep 18, 2022
1 parent b23cef4 commit d27adcc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ export const options = {
description: "Sort Tailwindcss classes automatically. This option respects `tailwind.config.js`.",
since: "1.0.0",
},
tailwindcssConfigPath: {
type: "string",
category: "Blade",
default: '',
description: "A path to custom Tailwindcss config",
since: "1.5.7",
},
sortHtmlAttributes: {
type: "string",
category: "Blade",
Expand Down
1 change: 1 addition & 0 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const parse = (
endWithNewline: opts.endWithNewline,
useTabs: opts.useTabs,
sortTailwindcssClasses: opts.sortTailwindcssClasses,
tailwindcssConfigPath: opts.tailwindcssConfigPath,
sortHtmlAttributes: opts.sortHtmlAttributes,
noMultipleEmptyLines: true,
};
Expand Down

0 comments on commit d27adcc

Please sign in to comment.