#2277 Bug: no mimeType for ".min.map" javascript files

cpatton Mon 5 May 2014

Expected "application/json" but instead got null on my mimeType.

File(`myUri/myFile.min.js.map`).get.mimeType.toStr

SlimerDude Mon 5 May 2014

Can't say I've ever heard of a .map file. Is it common?

Anyway, just add the following entry to %FAN_HOME%/etc/sys/ext2mime.props:

map=application/json

brian Mon 5 May 2014

There is no predefined mapping for ".map" (and I'm not sure something that generic should be widely matched to json). However you can easily configure it in your own environment using etc/sys/ext2mime.props

SlimerDude Thu 8 May 2014

How about adding a predefined mapping for .xhtml?

xhtml=application/xhtml+xml

The application/xhtml+xml mime type is as defined by W3C XHTML Media Types.

I currently hard code this mapping in Pillow but it'd be nice not to. (If it wasn't hard coded, all users and deployed environments of Pillow would have need an amended ext2mime.props file.)

brian Thu 8 May 2014

The application/xhtml+xml mime type is as defined by W3C XHTML Media Types

Added!

SlimerDude Mon 23 Jun 2014

I just found a lengthly article on Source Maps, for .min.map files, on HTML5 Rocks: Introduction to JavaScript Source Maps

Login or Signup to reply.