gulp-wrap-factory
Wrap Factory module
Install
npm install --save-dev gulp-wrap-factory
Example
var gulp = wrap = ; gulp;
Example input:
// my coding goes here.console;
Example output (name: 'Base'
):
{ if typeof exports !== "undefined" moduleexports = factory; else globalBase = factory; }this { { // my coding goes here. console; }};
Options
String name
- valid name of global variable which should be available in browser.