Last active
December 16, 2015 19:29
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'rake-pipeline', github: 'livingsocial/rake-pipeline' | |
gem 'rake-pipeline-web-filters', github: 'wycats/rake-pipeline-web-filters' | |
gem 'uglifier' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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