Permalink
Browse files

Minify lib files ourselves

  • Loading branch information...
davidkaneda committed Feb 17, 2013
1 parent b1c8a7c commit c7f54d2c836ad5a195000fc50c402acc668b6e17
Showing with 18 additions and 6 deletions.
  1. +18 −0 Gruntfile.coffee
  2. +0 −4 lib/jquery/jquery-1.7.min.js
  3. +0 −2 lib/zepto/zepto.min.js
View
@@ -162,6 +162,24 @@ module.exports = (grunt) ->
src: '**/*.js'
dest: "<%= dirs.dist %>/extensions/"
+ lib:
+ expand: yes
+ cwd: "<%= dirs.dist %>/lib/"
+ src: '**/*.js'
+ dest: "<%= dirs.dist %>/lib/"
+ ext: '.min.js'
+
+ options:
+ preserveComments: (comment) ->
+
+ # Preserve comments near the top of the file.
+ # Loosey-goosey, I know, but I want to make sure we keep any
+ # Zepto and jQuery lines about (c) and license
+ if comment.start.line < 4
+ yes
+ else
+ no
+
cover:
compile:
files:
Oops, something went wrong.

0 comments on commit c7f54d2

Please sign in to comment.