Bower: How to fix a package or apply overrides?

What is the best way to override or apply patches on a package that was added to my project using the gazebo?

In my Sass folder, I have a vendor_overrides folder, I'm fine with that, but how to handle javascripts?

Do the project and then install it using the gazebo?

+8
javascript bower
source share
1 answer

I could not find it with a gazebo.

So are you. Fork and hosting are an option. It is mentioned in What is a good method for disabling Bower packages in Angular?

Another method that I ended up with, as I was just making a small change, was to create a patch file using diff original_file modified_file > patch_file , and then fix that file using patch -N file < patch_file .

Then I just make sure that in the chain of tools for setting up / creating a project this call to the patch occurs after bower install

+2
source share

All Articles