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
out-file option does not respect given file-extension #1228
Comments
Not sure if this should be done. I think parcel should stay responsible for extensions. |
Thanks for your feedback. I agree on parcel being responsible for extensions in general. My point is, that if you explicitly set the output filename via --out-file, i would expect that the given file-extension is respected. But never mind, if it doesn't fit with the overall concept, I'm ok with that :-) Feel free to close this issue then. For my use-case I happily can setup a build-toolchain and rename the rename the file after parcel has run (but isn't the whole point of parcel not to set-up custom toolchains ;-) ? UPDATE: I will test your proposal about having multiple entry-points and linking from a non-parcel touched aspx-file. My use-case currently is, that there's nothing special about the aspx-file, it's plain html, but hosting in sharepoint requires the file-extension being aspx. |
🐛 bug report
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
The generated file should be ./dist/index.aspx
😯 Current Behavior
The generated file is ./dist/index.aspx.html
💁 Possible Solution
In Bundle.js@line_121 when checking for the outFile options, check for given file extension for example like so:
🔦 Context
I would like the generated file to have "aspx" as file-extension
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: