Created
October 4, 2016 09:16
-
-
Save victor-shelepen/3e2e2238b05405676c6d839c10e8563e to your computer and use it in GitHub Desktop.
It concatanates libraries and wraps them into closure defining dependencies.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var | |
gulp = require('gulp'), | |
concat = require('gulp-concat'), | |
wrap = require("gulp-wrap"); | |
gulp.task('scripts', function() { | |
gulp | |
.src([ | |
'./js/modernizr.js', | |
'./js/webflow.js' | |
]) | |
.pipe(concat('webflow-pack.js')) | |
.pipe(wrap(';(function($) {\n <%= data.contents %> \n})(jq220);', { variable: 'data' })) | |
.pipe(gulp.dest('./js')) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It make Webflow to work with Drupal.