Search code examples
ember.jsember-cli

Exclude jQuery from vendor.js in ember-cli


Is it possible to exclude jQuery dependency from vendor.js in ember-cli when building for production only? I want to include it separately in my site.


Solution

  • At the end the only thing worked for me was this:

    var app = new EmberApp({
     vendorFiles: {
        production: false,
        development: 'bower_components/jquery/dist/jquery.js'
      }
    });
    

    This will exclude it in production but not in development.