I override magento\vendor\magento\module-catalog\view\frontend\web\js\catalog-add-to-cart.js
as I need to change the text from "Add to Cart" to "Buy Now"
magento\app\code\Custom\Module\view\frontend\requirejs-config.js
var config = {
"map": {
"*": {
"Magento_Catalog/js/catalog-add-to-cart": "Custom_Module/js/catalog-add-to-cart"
}
}
};
It works fine on Product Page, but on Category page it still goes to Main File not override file.
Why?