mirror of
https://github.com/withastro/astro.git
synced 2025-03-31 23:31:30 -05:00
chore: UpdatepossibleConfigFiles
(#9600)
* Add `.ts` to list of `possibleConfigFiles` * Add more options * Create many-rules-kick.md * Update .changeset/many-rules-kick.md Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> --------- Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
This commit is contained in:
parent
218ea0781b
commit
47b951b388
2 changed files with 10 additions and 0 deletions
7
.changeset/many-rules-kick.md
Normal file
7
.changeset/many-rules-kick.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Improves tailwind config file detection when adding the tailwind integration using `astro add tailwind`
|
||||
|
||||
Tailwind config file ending in `.ts`, `.mts` or `.cts` will now be used instead of creating a new `tailwind.config.mjs` when the tailwind integration is added using `astro add tailwind`.
|
|
@ -160,6 +160,9 @@ export async function add(names: string[], { flags }: AddOptions) {
|
|||
possibleConfigFiles: [
|
||||
'./tailwind.config.cjs',
|
||||
'./tailwind.config.mjs',
|
||||
'./tailwind.config.ts',
|
||||
'./tailwind.config.mts',
|
||||
'./tailwind.config.cts',
|
||||
'./tailwind.config.js',
|
||||
],
|
||||
defaultConfigFile: './tailwind.config.mjs',
|
||||
|
|
Loading…
Add table
Reference in a new issue