From 61f64e9f04ec6039759519371aff76cd504ed5da Mon Sep 17 00:00:00 2001 From: kpdecker Date: Wed, 29 May 2013 15:21:19 -0400 Subject: [PATCH] Add minify task to release target --- Rakefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index a6e3e102..794686f1 100644 --- a/Rakefile +++ b/Rakefile @@ -106,8 +106,13 @@ task :version => [] do |task| end end +task :minify => [] do |task| + system "./node_modules/.bin/uglifyjs --comments -o dist/handlebars.min.js dist/handlebars.js" + system "./node_modules/.bin/uglifyjs --comments -o dist/handlebars.runtime.min.js dist/handlebars.runtime.js" +end + desc "build the build and runtime version of handlebars" -task :release => [:version, :build, :runtime] +task :release => [:version, :build, :runtime, :minify] directory "vendor"