From: Thorsten Rinne Date: Wed, 11 Nov 2015 07:34:36 +0000 (+0100) Subject: Added support for CSS/JavaScript source maps X-Git-Tag: php-7.0.1RC1~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04c3fbac3753cbb6206f5d669c576bdcea6c6eb7;p=php 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" --- diff --git a/sapi/cli/mime_type_map.h b/sapi/cli/mime_type_map.h index e82fc3fd7f..b9dd6ef759 100644 --- a/sapi/cli/mime_type_map.h +++ b/sapi/cli/mime_type_map.h @@ -71,6 +71,7 @@ static php_cli_server_ext_mime_type_pair mime_type_map[] = { { "ma", "application/mathematica" }, { "nb", "application/mathematica" }, { "mb", "application/mathematica" }, + { "map", "application/json" }, { "mathml", "application/mathml+xml" }, { "mbox", "application/mbox" }, { "mscml", "application/mediaservercontrol+xml" },