Skip to content

Commit 38d4585

Browse files
yaustarSteven Yau
andauthored
Add instructions on creating sourcemap (playcanvas#2008)
* Add instructions on creating sourcemap * Added output file path of the sourcemap Co-authored-by: Steven Yau <syau@snaphcat.com>
1 parent 41f1135 commit 38d4585

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,14 @@ You can develop TypeScript applications against the PlayCanvas engine. To genera
192192

193193
This will output to build/output/playcanvas.d.ts
194194

195+
## Generating Source Map
196+
197+
To build the source map to allow for easier engine debugging, use the following command:
198+
199+
npm run build -- -m
200+
201+
This will output to build/output/playcanvas.js.map
202+
195203
## Getting Help
196204

197205
[**Forums**](https://forum.playcanvas.com) - Use the forum to ask/answer questions about PlayCanvas.

0 commit comments

Comments
 (0)