amap
v1.0.7
Published
Extract inline source map to another file
Downloads
77
Readme
amap
Extract inline source map to another file
Installation
$ npm install amap --save
Usage
'use strict'
const amap = require('amap')
const co = require('co')
co(function * () {
yield amap('ui/index.js') // index.js -> index.js + index.js.map
}).catch((err) => console.error(err))
Signature
amap(filename, options) -> Promise
Params
| Name | Type | Description | | ----- | --- | -------- | | filename | string | Filename to extract | | options | Object | Optional settings | | options.dest | string | Path to save file (which has no longer contains sourcemap) | | options.map | string | Path to save sourcemap file |
License
This software is released under the MIT License.