0.1.2 • Published 10 years ago

browserify-sourcemap-root-transform v0.1.2

Weekly downloads
2
License
Apache Version 2....
Repository
github
Last release
10 years ago

browserify-sourcemap-root-transform

This package is a browserify plugin that transforms the sourcemap root path in your output bundle. If you ship sourcemaps with your browserify bundle, this allows you to set the root prefix that developers will see when they look at their sources in web inspector.

By default, the plugin will replace the basedir with the npm package name of the current package. To override this behavior, set basedir in the plugin options.

Example: browserify -p ' "browserify-sourcemap-root-transform", {"basedir":"MyCoolPackage"} '

Example (grunt-browserify): plugins : 'browserify-sourcemap-root-transform', { basedir : "MyCoolPackage" }