mako-sourcemaps

1.0.1 • Public • Published

mako-sourcemaps

A plugin for working with source maps.

npm version npm dependencies npm dev dependencies

Purpose

  • converts file.sourceMap to either an inline comment or an external file (as file.path + '.map')
  • allows prior plugins to only care about the raw file.sourceMap object

API

sourcemaps(extensions, options)

Create a new plugin instance, with the following options available:

  • inline set this as true to output inline source maps
  • spaces set this to a number to pretty-print the map JSON with spaces

NOTE: by including this plugin, source maps are assumed to be on. (unlike other plugins, which use the true/false/'inline' paradigm) If you don't want source maps enabled, exclude this plugin.

/mako-sourcemaps/

    Package Sidebar

    Install

    npm i mako-sourcemaps

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • dominicbarnes