We have an addon that we have created that contains this in its dependencies in the package.json file:
In an application that was using our addon I saw that we also had ember-spectrum-color-picker in its package.json file’s dependencies section so decided to remove it as it was in the addon’s dependencies section. However, the dist/assets/vendor.css file is not getting populated with the styles from ember-spectrum-color-picker anymore. If I add the ember-spectrum-color-picker back into the application’s dependencies section the styles are back in dist/assets/vendor.css.
Is this expected behaviour? When I run the application build and put console logs into ember-spectrum-color-picker’s index.js file when it is only in the addon’s dependencies section I can see it is populating the treeForVendor (or at least running that method anyway), but is this then ignored?
What do I need to put into our addon’s index.js file to make it add ember-spectrum-color-picker’s styling to the vendor.css file? Do I basically need to copy what is in the ember-spectrum-color-picker’s index.js file into our addon’s index.js file?