Quantcast
Viewing all articles
Browse latest Browse all 4826

JavaScript Size

@T.J_Crowder wrote:

By default, the app created via ember-cli builds two .js files: A "vendor" one and an app one. For my fresh-out-of-the-box Ember.js 2.7 app that's basically just the Getting Started example, the vendor file from an ember build -prod is 678k in size (gzips to about 181). cdnjs.com's copy of Ember 2.7 is 428k (gzips down to a nice 112). My bower.json looks like this:

{
  "name": "emtest",
  "dependencies": {
    "ember": "~2.7.0",
    "ember-cli-shims": "0.1.1",
    "ember-qunit-notifications": "0.1.0"
  }
}

Both of the things other than Ember itself look like things that wouldn't be in a production build, and indeed if I remove them the size of the vendor file doesn't change.

Where's the extra 250k coming from?

Thanks,

-- T.J.

Posts: 8

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles