Skip to content

Instantly share code, notes, and snippets.

@pootsbook
Last active December 16, 2015 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pootsbook/5485214 to your computer and use it in GitHub Desktop.
Save pootsbook/5485214 to your computer and use it in GitHub Desktop.
Ember.js with dependencies, 83K minified and gzipped, +18K if you're using ember-data.
source 'https://rubygems.org'
gem 'rake-pipeline', github: 'livingsocial/rake-pipeline'
gem 'rake-pipeline-web-filters', github: 'wycats/rake-pipeline-web-filters'
gem 'uglifier'
# Assetfile
require 'rake-pipeline-web-filters'
output 'build'
input 'assets' do
match "core/*.js" do
concat "dependencies.js"
uglify
gzip
end
match "extra/*.js" do
concat "extra.js"
uglify
gzip
end
end
$ ls assets/core
jquery-2.0.0.min.js
handlebars.runtime-1.0.0-rc.3.js
ember-1.0.0-rc.3.min.js
$ ls assets/extra
ember-data-latest.min.js
$ bundle exec rakep
$ ls -lah build
83K dependencies.min.js.gz
18K extra.min.js.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment