Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parcel adds dot to file with no extension. #3763

Open
kevincox opened this issue Nov 11, 2019 · 2 comments
Open

Parcel adds dot to file with no extension. #3763

kevincox opened this issue Nov 11, 2019 · 2 comments

Comments

@kevincox
Copy link
Contributor

πŸ› bug report

When using a file with no extension as an entrypoint parcel adds a dot to the end of the file name when building.

% mkdir example
% cd example
% uuidgen >ping
% parcel build ping
✨  Built in 66ms.

dist/ping.    37 B    12ms

πŸ€” Expected Behavior

I should get the ping file copied into the output folder.

😯 Current Behavior

It gets renamed to ping.

🌍 Your Environment

% parcel --version
1.12.4
@mischnic
Copy link
Member

What is your usecase here? Parcel determines the filetype based on the extension, so I don't see how this could be useful.

@kevincox
Copy link
Contributor Author

There are always random files that you want to serve from your site. In this case I'm making a simple ping URL to use for monitoring. However I can also imagine examples like executable file downloads which typically don't have extensions.

I understand that I won't be getting transformations because of the minimal information that Parcel has, however it is still useful to have it copy them over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants