-
-
Save juanmanuelsanchez/e6e29345f52b33bcb48a8a5f706d11cd to your computer and use it in GitHub Desktop.
Using Bower with gulp, for https://markgoodyear.com/2014/01/getting-started-with-gulp/#comment-2134209691
This file contains hidden or 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'); | |
var uglify = require('gulp-uglify'); | |
var concat = require('gulp-concat'); | |
var bower = require('main-bower-files'); | |
gulp.task('bower', function () { | |
return gulp.src(bower()) | |
.pipe(concat('vendor.js')) | |
.pipe(uglify()) | |
.pipe(gulp.dest('/build/scripts')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment