Package Exports
- mapify
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mapify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
mapify
A browserify plugin to create alias mappings for directories.
Usage
var browserify = require('browserify'),
b = browserify(__dirname);
b.plugin('mapify', {
cwd: 'foo/bar/app',
pattern: '**/*.js',
expose: 'app'
});
b.bundle();
// this maps e.g. foo/bar/app/index.js to app/index
options
Array or object wich defines an alias mapping.
cwd
Entry point for the alias.
pattern
Glob pattern.
expose
Name of the alias.