Skip to content

Instantly share code, notes, and snippets.

View sjungling's full-sized avatar

Scott Jungling sjungling

  • Moderne.io
  • Chico, CA
  • 08:35 (UTC -08:00)
View GitHub Profile
@sjungling
sjungling / Gruntfile.js
Created August 14, 2013 20:14
recursive in-place Uglify
module.exports = function(grunt) {
var uglify = {
options: {
files: function(srcDir) {
var filesAry = [];
var results = {};
filesAry.push(srcDir);
filesAry = grunt.file.expand(filesAry);
filesAry.forEach(function(file) {
results[file] = [file];
RED="\[\033[1;31m\]"
YELLOW="\[\033[1;33m\]"
GREEN="\[\033[1;32m\]"
BLUE="\[\033[1;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[1;37m\]"
COLOR_NONE="\[\e[0m\]"