apeman-task-exorcist
apeman task to externalizes the source map from javascript files.
Last updated a year ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install apeman-task-exorcist 
SYNC missed versions from official npm registry.

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

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (10)

Copyright 2014 - 2017 © taobao.org |