com php-src: Added support for CSS/JavaScript source maps: sapi/cli/mime_type_map.h
| From: | Reeze Xia | Date: | Sun, 15 Nov 2015 12:25:39 +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-89854@lists.php.net to get a copy of this message | ||
Commit: 04c3fbac3753cbb6206f5d669c576bdcea6c6eb7
Author: Thorsten Rinne <thorsten@phpmyfaq.de> Wed, 11 Nov 2015 08:34:36 +0100
Committer: Reeze Xia <reeze@php.net> Sun, 15 Nov 2015 20:25:39 +0800
Parents: 1934d6d9abc2c983d70e0a9f1d958a610aee165a
Branches: PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=04c3fbac3753cbb6206f5d669c576bdcea6c6eb7
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" },