mikach / gulp-concat-sourcemap

Concatenate files and generate a source map file.
30 stars 9 forks source link

I am wondering if we can add an option #14

Open Todd-Werelius opened 10 years ago

Todd-Werelius commented 10 years ago

To rename the map file to something other than the derived default, it can be useful if you are generating a number of outputs and you want to chose the final name of the map file.

Also you probably want to update the readme with a few more examples to show how to make it work with uglify

Happy to do a pull request

mikach commented 10 years ago

Are you going to do PR?

Todd-Werelius commented 10 years ago

Sorry I missed this, yeah I can do a PR

Todd-Werelius commented 10 years ago

Strangely enough all the tests ( with the exception of the first ) are failing with original source, I have not made any changes yet.

The problem is that the mappings don't match ( scroll to far right ) I am running this on windows box but I can't imagine how that would matter.

Expected  +"{\n  \"version\": 3,\n  \"file\": \"file.js\",\n  \"sources\": [\n    \"file1.js\",\n    \"file2.js\"\n  ],\n  \"names\": [],\n  \"mappings\": \"AAAA;;ACAA\"\n}"

Actual    -"{\n  \"version\": 3,\n  \"file\": \"file.js\",\n  \"sources\": [\n    \"file1.js\",\n    \"file2.js\"\n  ],\n  \"names\": [],\n  \"mappings\": \"AAAA;CCAA\"\n}"