Skip to content

Compiling a bundle with gulp jbb

Ioannis Charalampidis edited this page Jun 7, 2016 · 2 revisions

Requirements

You need the following npm modules installed:

npm install gulp gulp-jbb 

In addition you need the profiles you are using:

npm install jbb-profile-three

Example gulpfile.js

var gulp  = require('gulp');
var jbb   = require('gulp-jbb');

gulp.task('bundles', function() {
    return gulp
        .src([
            'mybundle.jbbsrc'
        ])
        .pipe(jbb({
            'profile': 'three'
        }))
        .pipe(gulp.dest('build'));
});

Clone this wiki locally