Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

Why do all my files in Vendor compile without an app.import?

$
0
0

@sorvah wrote:

I’ve been trying to pare down my Vendor folder and sort out some redundant libraries in there and I’ve experienced some behavior I don’t quite understand:

  1. If I remove the app.import() from the ember-cli-build.js file for certain folders then check the compiled vendorjs in the Chrome network tool it still includes the very file that had the app.import() removed. Does it just compile everything in the vendor folder regardless of what you import in ember-cli-build?

  2. When I manually deleted some of the libraries from the vendor directory my project failed to build. Instead it produced an error to say that a tmp path to one of the files could not be found: (ENOENT: no such file or directory, open ‘/tmp/broccoli-24367twfkULfXNr4y/out-438-broccoli_debug_debug_2_vendor_js/vendor/jquery-ui/ui/minified/jquery-ui.min.js’

This error only cleared when I replaced the deleted file - is there a more graceful way I should be removing these libraries?

Note that the above is from building with ‘ember s’ not in an ember build. Is there something fundamental I’m not understanding?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles