apeman-task-exorcist

2.1.0 • Public • Published

apeman-task-exorcist

Build Status Code Climate Code Coverage npm Version JS Standard

apeman task to externalizes the source map from javascript files.

Installation

$ npm install apeman-task-exorcist --save-dev

Usage

  1. Define a task within Apemanfile.js
  2. 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.

Links

Readme

Keywords

Package Sidebar

Install

npm i apeman-task-exorcist

Weekly Downloads

2

Version

2.1.0

License

MIT

Last publish

Collaborators

  • okunishinishi