Source maps for debugging
summary
Explains how to generate and chain Source Maps: compile CoffeeScript with -m to emit application.js plus application.js.map, then run uglifyjs with --source-map (and --in-source-map) to produce a production.min.js and merged map. Notes a gotcha: combining files where only one has a map drops the other’s mapping. Shows Chrome Canary/WebKit/Firefox nightly support, recommends uploading maps to a staging server (not committing them) and mentions Rails and Sass tooling that support Source Maps.
AI-written summary · about
chapters (7)
- 0:00Source maps intro
- 1:56How source maps work
- 3:40Generating with CoffeeScript & UglifyJS
- 6:29Minifying with source maps
- 7:56Viewing in dev tools
- 9:42Browser support & Rails
- 11:08CSS source maps with SASS








