Skip to content

Commit 04c3fba

Browse files
thorstenreeze
authored andcommitted
Added support for CSS/JavaScript source maps
Source maps (http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/) are basically a way to map a combined/minified file back to an unbuilt state. To avoid error messages in Browser DevTools, source map files should be served with the MIME type "application/json"
1 parent 1934d6d commit 04c3fba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sapi/cli/mime_type_map.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ static php_cli_server_ext_mime_type_pair mime_type_map[] = {
7171
{ "ma", "application/mathematica" },
7272
{ "nb", "application/mathematica" },
7373
{ "mb", "application/mathematica" },
74+
{ "map", "application/json" },
7475
{ "mathml", "application/mathml+xml" },
7576
{ "mbox", "application/mbox" },
7677
{ "mscml", "application/mediaservercontrol+xml" },

0 commit comments

Comments
 (0)