Export fails if multiple files have the same name but different suffixes #1386
Labels
Package: react-email
This is the CLI we generally use as just `email` on the temrinal.
Type: Bug
Confirmed bug
Describe the Bug
When exporting with
npm run export
, the export filenames discard any suffix and not only the last part of the file extension, i.e.I know, this isn't a bug per se but more a matter of taste, but to me it makes more sense to use everything except the last extension suffix as the filename since combined extensions (like
filename.ext.gz
for gzip-compression) don't appear often the context of this project. Also, it's weird that there's a distinction between the two files before the building step (e.g. in the dev server) but not afterwards.Which package is affected (leave empty if unsure)
No response
Link to the code that reproduces this issue
None, as it is a request regarding the CLI
To Reproduce
MyEmail.en.jsx
andMyEmail.de.jsx
)Expected Behavior
That the suffixes of the filenames will be preserved.
What's your node version? (if relevant)
21.2.0
The text was updated successfully, but these errors were encountered: