0

I am trying to override below file in my custom theme.

lib/web/jquery.js

Seems it been override. But It stop other jquery from working.

enter image description here

Due to this a lot of console error arise.

enter image description here

Here is my code

app/design/frontend/custom/theme/requirejs-config.js

var config = {
    map: {
        '*': {
            'jquery':'js/custom-jquery'
        }
    }
};

I have placed my override file here:

app/design/frontend/custom/theme/web/js/custom-jquery.js

Can anyone please suggest how to override lib/web/jquery.js properly.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.