Skip to content

Instantly share code, notes, and snippets.

View rmjoia's full-sized avatar
💭
Cool

Ricardo Melo Joia rmjoia

💭
Cool
View GitHub Profile
@vincent-zurczak
vincent-zurczak / gulpfile.js
Last active November 20, 2018 13:07
Copy minified Bower dependencies with Gulp (better solution)
// Include our plug-ins
var gulp = require('gulp');
var mainBowerFiles = require('main-bower-files');
var exists = require('path-exists').sync;
// Create some task
gulp.task( 'copy-bower-dep', function() {
// Replace files by their minified version when possible
var bowerWithMin = mainBowerFiles().map( function(path, index, arr) {