Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Are there known editors/IDEs that use source maps for HTML?

29 views
Skip to first unread message

Brian Sturgill

unread,
Feb 12, 2015, 3:10:10 PM2/12/15
to dev-js-s...@lists.mozilla.org
My understanding is that it is intended that this be used for HTML and CSS
as well as JavaScript
and I know of a few places that use it for CSS.

I am making a preprocessor for HTML and would like to test my maps with a
program that knows how to use them.

Thanks!

--

Brian

Andy Sterland

unread,
Feb 13, 2015, 7:01:42 PM2/13/15
to Brian Sturgill, dev-js-s...@lists.mozilla.org
For testing a map I use Ron's visualizer (https://github.com/rbuckton/sourcemap-visualizer) it produces an awesome interactive visualization of the source map.

The readme is a bit light :| but to use it:

Set it up
1) Clone the repo
2) npm install
3) npm install -g jake (if not already)
4) Jake

Use it (from the bin folder):
1) node sourcemap <path to map file>
e.g.:
node .\sourcemap .\cli.js.map
Produces a html file (cli.js.map.html) that looks something like:
http://imgur.com/YAQJqY5

-Andy
_______________________________________________
dev-js-sourcemap mailing list
dev-js-s...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-js-sourcemap
0 new messages