bowerstatic
bowerstatic copied to clipboard
override main of a component
Sometimes the main of a bower component does something we really don't want. We should have the possibility to override it entirely.
Is there any progress on this? Bower seems to support a an overrides concept, see https://github.com/bower/bower.json-spec/issues/38
No progress on this. Happy to see contributions.
From what I can find in that issue (and related https://github.com/bower/bower.json-spec/pull/27 ) , Bower does not yet support such an overrides system, right? But we can take it as inspiration, I guess!
I'm not sure about the implementation status of this feature in bower. (Some pages refer to it as undocumented some other – like the spec – let me think that it is not jet implemented.) But I think it could be a good source of inspiration.
I my current problem was that I wanted to exclude a file mentioned in main. I solved it for now by manipulating the resource dependencies after include.
I ran into an issue where I wanted to completely change a main to include a different file (which can happen if a bower package offers multiple bundles with more or less features).