metafizzy/gulp-requirejs-optimize

Name: gulp-requirejs-optimize

Owner: Metafizzy

Description: RequireJS optimizer plugin for gulp

Created: 2016-01-19 01:34:49.0

Updated: 2016-11-02 13:15:01.0

Pushed: 2016-11-02 14:54:53.0

Homepage: null

Size: 2

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Gulp RequireJS optimize

Used to create pkgd files for Masonry, Isotope, Packery, and Flickity.

rjsOptimize = require('gulp-requirejs-optimize');

.task( 'requirejs', function() {
turn gulp.src('js/packery.js')
.pipe( rjsOptimize({
  baseUrl: 'bower_components',
  optimize: 'none',
  include: [
    'jquery-bridget/jquery-bridget',
    'packery/packery'
  ],
  paths: {
    packery: '../js/',
    jquery: 'empty:'
  }
}) )
.pipe( gulp.dest('dist') );


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.