jiyinyiyong
jiyinyiyong

Reputation: 4713

Is there SourceMaps for HTML?

In Google Chrome there are already sourcemaps for JS and CSS, CoffeeScript etc., and Paul Irish just demostrated SASS using sourcemaps.

It is a a technique to map development source files to the compiled results in the browser to allow navigating back to the source.

So, is there sourcemaps for HTML now? Languages like Jade, Slim really want such features so that people may debug them more easily.

Upvotes: 23

Views: 2640

Answers (2)

BananaAcid
BananaAcid

Reputation: 3481

It is dead simnple to generate sourcemaps in a generic way like for css, but there is no browser support for it.

Some editors have plugins to support this. But be aware: this works best for static pages. (pug/jade, ... - using this at our place with nodejs+gulp)

Upvotes: 2

Emerson Rocha
Emerson Rocha

Reputation: 558

Sourcemaps, ready to use for HTML today no. This is also something very complex to implement.

This can change in future. If this response was marked as correct, and someone knows after some time that my answer is not more true, please comment below I'm wrong.

Upvotes: 12

Related Questions