awesome-aliasify
v0.0.13
Published
`awesome-aliasify` is browserify plugin let you customize redirect specific module
Downloads
3
Readme
awesome-aliasify
awesome-aliasify
is browserify plugin let you customize redirect specific module
Usage
"use strict";
var vue = require("Vue");
"use strict";
const browserify = require("browserify");
const alias = require("awesome-aliasify");
let b = browserify({ entries: "./src/index.js" })
.plugin(alias,{
vue: "global.Vue"
});
b.bundle()
/* .pipe(...) */
plugin will transform vue
module in to module.exports = global.Vue
Local Redirect
let b = browserify({ entries: "./src/index.js" })
.plugin(alias,{
someLocal: "./cwd/path/to/local.js"
});