24 lines
756 B
Markdown
24 lines
756 B
Markdown
|
|
# mapstraction
|
||
|
|
|
||
|
|
Browserify plugin to extract sourcemaps.
|
||
|
|
|
||
|
|
[](https://travis-ci.org/jiborobot/mapstraction)
|
||
|
|
|
||
|
|
This plugin was created to solve two problems: extract sourcemaps similar to [exorcist](https://www.npmjs.com/package/exorcist) but that would work without having to pipe results.
|
||
|
|
|
||
|
|
## Usage
|
||
|
|
|
||
|
|
Include `mapstraction` as a Browserify plugin on the commandline. The name of the default file is the output name, (e.g., "bundle.js.map").
|
||
|
|
|
||
|
|
```bash
|
||
|
|
browserify main.js -o bundle.js -p mapstraction --debug
|
||
|
|
```
|
||
|
|
|
||
|
|
### Named Output
|
||
|
|
|
||
|
|
Pass in an optional argument with the name of the map file.
|
||
|
|
|
||
|
|
```bash
|
||
|
|
browserify main.js -o bundle.js -p [ mapstraction "custom.js.map" ] --debug
|
||
|
|
```
|