1.0.7 • Published 9 years ago
amap v1.0.7
amap
Extract inline source map to another file
Installation
$ npm install amap --saveUsage
'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.