jlgrock / ClosureJavascriptFramework

A group of plug-ins that can be used in conjunction with maven to execute the Google Closure Compiler on JavaScript code. This Framework allows for scaling and modularity.
MIT License
16 stars 7 forks source link

Source-map support #22

Closed pgilmore closed 11 years ago

pgilmore commented 11 years ago

Hi,

We needed source map support to ease debuging for us. So we added support for it in the closure compile plugin

If the setting generateSourceMap is set to true (default is true) a source map file will be generated.

The file has the same name as the compiled js file except it has the extension .smap

We also append the source map comment to the compiled js file. So the only thing one has to do is to enable source map support in a web-kit browser and your all set.

Thansk for your efforts with this plugin.

Cheers Patrick

jlgrock commented 11 years ago

Wow, I'd never even heard of that feature. That's awesome. I've got to test it out a bit more before releasing, but I'm definitely taking the code. Thanks for the submit!

pgilmore commented 11 years ago

Found an issue running it on Windows. Will submit a fix shortly.