cdepillabout / servant-static-th

Embed a directory of static files in your application and serve them from your Servant server
http://hackage.haskell.org/package/servant-static-th
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

Unknown extension type "map" #13

Closed saurabhnanda closed 4 years ago

saurabhnanda commented 4 years ago

These are source-map files for minified / uglified CSS/JS files. There should probably be a config option in the user-facing API which controls whether these files should be served, or not.

cdepillabout commented 4 years ago

Hmm, I'm not sure what to do about this.

servant-static-th is really meant to be a super-simple way to bundle and serve static assets with a servant application.

If you have an application with complicated assets, and want control over bundling certain files (or ignoring certain files), it may be better to find a more reliable way to do it than with servant-static-th.


That said, if you want to send a PR adding support for bundling these .map files, I'd be happy to merge it in.

cdepillabout commented 4 years ago

This was sort of fixed in #15, although I guess there is a bigger request to add a way to tell servant-static-th to ignore (and not serve) some file types.

Let's track that in #12.