ember-cli / broccoli-asset-rev

Broccoli plugin to add fingerprint checksums and CDN URLs to your assets
MIT License
86 stars 83 forks source link

Ensure ember-cli knows the proper location of the addon entry point. #37

Closed rwjblue closed 9 years ago

rwjblue commented 9 years ago

Ember CLI previously used index.js as a fallback path, but it should have checked the main property first (which is being added in https://github.com/ember-cli/ember-cli/pull/3545). However, if main is used with broccoli-asset-rev we do not get the right entry script (we would get lib/asset-rev.js instead of index.js).

This fixes that issue by defining the custom ember-addon.main entry point script. This is backwards compatible.

rickharrison commented 9 years ago

Awesome, thanks! Published as 2.0.2