Przeglądaj źródła

add minify task

tags/0.5.1
Jan Lehnardt 14 lat temu
rodzic
commit
2f135e2e15
1 zmienionych plików z 8 dodań i 0 usunięć
  1. +8
    -0
      Rakefile

+ 8
- 0
Rakefile Wyświetl plik

@@ -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

Ładowanie…
Anuluj
Zapisz