Permalink
Browse files

add minify task

  • Loading branch information...
janl committed Feb 24, 2012
1 parent f311f88 commit 2f135e2e15dcc3c61385212261faaf00597bae10
Showing with 8 additions and 0 deletions.
  1. +8 −0 Rakefile
View
@@ -49,3 +49,11 @@ templated_build "Dojo", :location => "dojox/string"
templated_build "YUI3", :location => "yui3/mustache"
templated_build "RequireJS"
templated_build "qooxdoo"
+
+task :minify do
+ # npm install uglify-js
+ mmjs = "mustache.min.js"
+ `echo "/*! Version: 0.5.1-dev */" > #{mmjs}`
+ `uglifyjs mustache.js >> #{mmjs}`
+ puts "Created #{mmjs}"
+end

0 comments on commit 2f135e2

Please sign in to comment.