Commit 4d084c3
committed
Correctly call the tailwindcss preset if the auth flag is not passed
Due to the removal of `tailwindcss-auth` macro the `tailwindcss` macro
will always run `TailwindCssPreset::installAuth()`. This is in large
part because how macro's work and the `UiCommand::macro('tailwindcss')`
getting overwritten by `AuthCommand::macro('tailwindcss')`.
This commit assumes that just having one macro of `tailwindcss` is the
acceptable use moving forward. With that said, this commit check the
command option auth flag and if it's true will correctly install all the
auth presets.
This commit also removes the call to the `install()` method on the
TailwindCssPreset::installAuth method as this should always be called on
the macro.1 parent 64e82b0 commit 4d084c3
File tree
2 files changed
+4
-8
lines changed- src
2 files changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 21 | + | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
0 commit comments