-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfaq.html
87 lines (73 loc) · 2.89 KB
/
faq.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link href='https://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<title>Source Maps</title>
</head>
<body>
<div id="container">
<div class="inner">
<header>
<h1>Frequently Asked Questions</h1>
</header>
<hr/>
<section>
<h2>Table of Contents</h2>
<ul>
<li>
<a href="#faq1">How do I combined source maps for concatenated
files?</a>
</li>
<li>
<a href="#faq2">How can I modify the compiled output without
corrupting the source map?</a>
</li>
<li>
<a href="#faq3">Can source maps be completely self contained in
the generated source?</a>
</li>
</ul>
</section>
<hr/>
<section id="main_content">
<h3 id="faq1">How do I combined source maps for concatenated files?</h3>
<p>
Build an index map that refers to the individual pieces. See the
spec for details of a index map.
</p>
<h3 id="faq2">How can I modify the compiled output without corrupting
the source map?</h3>
<p>
For simple modifications such as adding a version or comment, if you
can isolate the change into a line by itself, you can modify that
line without affecting any other line. This is possible because the
source maps are line/column based. This also means that you can
append text to the end of the file without modifying the source map.
</p>
<p>
You can add an entire block of text the the beginning of the file by
creating a simple index map see <a href="#faq1">How do I combined source
maps for concatenated files?</a>
</p>
<h3 id="faq3">Can source maps be completely self contained in the
generated source?</h3>
<p>
Yes. Store the text content of your sources in
the <code>sourcesContent</code> property of your source map, and
then embed your source map into your generated source by using a
<code>data://</code> URI in the <code>//#
sourceMappingURL=...</code> comment pragma.
</p>
</section>
</div>
</div>
</body>
</html>