com php-src: Added support for CSS/JavaScript source maps: sapi/cli/mime_type_map.h
| From: | Xinchen Hui | Date: | Wed, 11 Nov 2015 07:34:36 +0000 |
| Subject: | com php-src: Added support for CSS/JavaScript source maps: sapi/cli/mime_type_map.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89846@lists.php.net to get a copy of this message | ||
Commit: a0d62f08ae8cbebc88e5c92e08fca8d0cdc7309d
Author: Thorsten Rinne <thorsten@phpmyfaq.de> Wed, 11 Nov 2015 08:34:36 +0100
Parents: cd6dda1679943e93fa9206b9674af418c07ee21c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a0d62f08ae8cbebc88e5c92e08fca8d0cdc7309d
Log:
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"
Changed paths:
M sapi/cli/mime_type_map.h
Diff:
diff --git a/sapi/cli/mime_type_map.h b/sapi/cli/mime_type_map.h
index e82fc3f..b9dd6ef 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" },