mako-sourcemaps
A plugin for working with source maps.
Purpose
- converts
file.sourceMap
to either an inline comment or an external file (asfile.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 astrue
to output inline source mapsspaces
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.