Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit ee581fc

Browse files
concavelenzfitzgencramforce
authored andcommitted
Source Map Revision 3 Proposal as of 2012-08-20
Co-authored-by: John Lenz <[email protected]> Co-authored-by: Nick Fitzgerald <[email protected]> Co-authored-by: Malte Ubl <[email protected]>
1 parent 7806844 commit ee581fc

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

source-map-rev3.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ July 20, 2011 | John Lenz | Removed “lineCount” field, remove “Combined Ma
1818
August 18, 2011 | John Lenz | Draft
1919
May 2, 2012 | John Lenz | HTTP header and CC-BY-SA license
2020
July 30, 2012 | John Lenz | Modified recommended HTTP header name.
21+
August 20, 2012 | John Lenz | Add CSS linkage recommendation
2122

2223
## License
2324

@@ -189,6 +190,8 @@ The HTTP header should supply the source map URL reference as:
189190
```
190191

191192

193+
Note: previous revisions of this document recommended a header name of “X-SourceMap”. This is now deprecated; “SourceMap” is now expected.
194+
192195
The generated code may include a line at the end of the source, with the following form:
193196

194197

@@ -197,7 +200,20 @@ The generated code may include a line at the end of the source, with the followi
197200
```
198201

199202

200-
Note: previous revisions of this document recommended a header name of “X-SourceMap”. This is now deprecated; “SourceMap” is now expected.
203+
This recommendation works well for JavaScript, it is expected that other source files will have other conventions:
204+
205+
206+
<table>
207+
<tr>
208+
<td>CSS
209+
</td>
210+
<td>/*@ sourceMappingURL=&lt;url> */
211+
</td>
212+
</tr>
213+
</table>
214+
215+
216+
Note: &lt;url> is a URL as defined in RFC3986; in particular, characters outside the set permitted to appear in URIs must be percent-encoded.
201217

202218
Regardless of the method used to retrieve the source mapping URL the same process is used to resolve it, which is as follows:
203219

0 commit comments

Comments
 (0)