]> granicus.if.org Git - php/commitdiff
Added support for CSS/JavaScript source maps
authorThorsten Rinne <thorsten@phpmyfaq.de>
Wed, 11 Nov 2015 07:34:36 +0000 (08:34 +0100)
committerReeze Xia <reeze@php.net>
Sun, 15 Nov 2015 12:25:39 +0000 (20:25 +0800)
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"

sapi/cli/mime_type_map.h

index e82fc3fd7fddd637a409f4026fb2402c0a5a694e..b9dd6ef75928436750f28945efe79d5895b8365e 100644 (file)
@@ -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" },