This is a very handy script to unpack the sourcemap generated by the webpack into a project structured folder.
I am not going to pubilsh this tools via npm. You could just clone this repo and run yarn install
to load the dependencies:
$ yarn install
And link it to your yarn bin folder, this will make it avaiable as a global command:
$ yarn link
$ WebpackSourcemapUnpacker -h
Usage: webpack-sourcemap-unpacker [options]
Unpack the sourcemaps generated by Webpack to a project
Options:
-v, --version output the version number
-p, --prefix [webpack:///] filter the path with certain prefix
-i, --input [glob-pattern] a glob patterns to describe sourcemap files to be unpacked, default to *.map
-o, --output [folder] set the output folder, default to current folder
-h, --help output usage information
Here is a handy gist for clawing all source map link from a page: https://gist.github.com/mutoo/0acc57192ff4de710f55043581da99b1
MIT