Smidge - Error 500 when Umbraco:Hosting:Debug set to false

Hi!

I receive the error below when I have Umbraco:Hosting:Debug set to false in appsettings.json. Smidge bundles the files correctly and it’s working on localhost. I suspect the issue to be that the file doesn’t end on .js, is it possible to set Smidge to bundle the files like this instead: my-scripts.js?v=1.3.0.148 like it does when you set Umbraco:Hosting:Debug to true

Or can you configure IIS to accept .js.whatever?

Error:

GET https://mydomain.com/sb/my-scripts.js.v1.3.0.148 net::ERR_ABORTED 500

This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/110463-smidge-error-500-when-umbracohostingdebug-set-to-false