'How to override Magento2 shipping.html

I'm trying to override shipping.html file, but it's not working. For this, I tried the code as below.

/app/design/frontend/thema/default/Magento_Checkout/requirejs-config.js
/app/design/frontend/thema/default/Magento_Checkout/web/template/shipping.html


var config = {
paths: {
    'Magento_Checkout/template/shipping': 'Magento_Checkout/template/shipping'
}
};

After I run the upgrade and static-conent:deploy, but still it's not working. Please suggest me where I went wrong?



Solution 1:[1]

You don't need to make the change in Magento_Checkout/requirejs-config.js putting the html in your template is enough

However, you have to flush the cache: bin/magento cache:flush

Ideally, delete the frontend folder under "pub" to ensure file regeneration and clear the var/cache - var/page_cache and var/view_processed folders

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Walid Fitouri