browserify-shimify
v0.1.0-0
Published
A very simple shim transform for browseify
Downloads
37
Maintainers
Readme
browserify-shimify
A very simple shim transform for browserify
Installation
$ npm install browserify-shimify --save-dev
Usage
var gulp = require('gulp');
var browserify = require('browserify');
var shimify = require('browserify-shimify');
gulp.task('browserify', function() {
// Shim config
var config = {
'sprintf-js': '{sprintf: window.sprintf, vsprintf: window.vsprintf}',
'moment': 'window.moment'
};
return browserify()
.transform(shimify.configure(config))
.bundle()
.pipe(gulp.dest('dist'));
});