On Thu, Oct 10, 2013 at 2:24 PM, Fitzgerald, Nick
> Make it possible to have just a local .min.js file but use public
> .min.map and uncompressed .js file from a CDN for example. Again this
> isn't possible at the moment because the map refers back to the minified
> file, and that will be a local file, not be the one on the CDN.
> This is totally possible, just set the sourceRoot to the CDN's directory
> that contains the original files. Or link to them directly in the
> sources list.
If I understand correctly, he wants to have the sourcemap file on the CDN
too. I think that would work if you put an absolute URL in the .min.js
file. That way nobody needs to copy sourcemaps around and you can move the
.min.js wherever you like.
To avoid mismatches, the sourcemaps and the source code should live in a
versioned directory and not mirrored to "latest" or "head". The absolute
URL in the .min.js file should contain the specific version number.