Sha256: 02f58d74734dad66cd12e3ad469073f17d27b8f95bf45fefaff76b58c8c6c3b9

Contents?: true

Size: 260 Bytes

Versions: 1

Compression:

Stored size: 260 Bytes

Contents

require 'uglifier'

task :uglify do
  ['jquery.role', 'role'].each do |file_name|
    base_name = File.join('lib', file_name)
    File.write(
      base_name + '.min.js',
      Uglifier.new.compile(
        File.read(base_name + '.js')
      )
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
role-rails-1.2.0 vendor/role/lib/tasks/compress.rake