Reputation: 47
I started to use web components from bower recently in my applications. I am trying to tweak a small logic in a particular web component. I want to know is there a way we can change the js logic specific to a component in my local js file instead of forking a repository and try to do it.
Thanks in advance.
Upvotes: 1
Views: 47
Reputation: 3662
For quick hacks you can go to bower_components
and experiment. For persistent changes you will need a fork.
Of course you could try monkey-patching by replacing methods/functions but it's ugly and brittle in case the dependency library changes.
Upvotes: 1