apeman-task-exorcist
v2.1.0
Published
apeman task to externalizes the source map from javascript files.
Downloads
3
Readme
apeman-task-exorcist
apeman task to externalizes the source map from javascript files.
Installation
$ npm install apeman-task-exorcist --save-dev
Usage
- Define a task within Apemanfile.js
- Call the task via apeman task command.
Apemanfile.js
/** This is an example Apemanfile to use apeman-task-exorcist */
'use strict'
module.exports = {
$pkg: { /* ... */ },
$tasks: {
// Define your own task.
'react:exorcist': require('apeman-task-exorcist')(
'public/js/bundle.js',
'public/js/bundle.js',
'public/js/bundle.js.map',
{
//Options
}
)
}
}
Then,
$ apeman task my-task-01
Signature
define(srcFile, destFile, mapFile, options) -> function
Externalizes the source map from javascript files.
Args
| Name | Type | Default | Description | | --- | ---- | --- | --- | | srcFile | string | | Source file which has inline source map. | | destFile | string | srcFile | Destination file after extracted. | | mapFile | string | destFile+".map" | Source map file to extract. | | options | object | | Optional settings. |
License
This software is released under the MIT License.