Making any syntax error in tailwind.config.cjs, you'll see a .temp.xxxx.tailwindcss.config.cjs generated. Fixing that error in tailwind.config.cjs won't clean up that temp file.
@chenxsan Yes, thank you! Probably this should be done in the finally (maybe in its own try/catch in case it fails). Would you be willing to submit a PR for this?
What version of
astro
are you using?1.6.10
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Linux
Describe the Bug
Making any syntax error in
tailwind.config.cjs
, you'll see a.temp.xxxx.tailwindcss.config.cjs
generated. Fixing that error intailwind.config.cjs
won't clean up that temp file.I think we need to
unlink
that temp file in bothtry
andcatch
here https://github.com/withastro/astro/blob/4b188132ef68f8d9951cec86418ef50bb4df4a96/packages/integrations/tailwind/src/index.ts#L51Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-1gh3v5?file=tailwind.config.cjs&on=stackblitz
Participation