I want to override following js core file.
public_html/vendor/magento/module-configurable-product/view/frontend
I have tried in my custom theme as follow but it is not working
public_html/app/design/frontend/TemplateMonster/theme007/Magento_ConfigurableProduct/view/frontend/web/js
i have also created required requirejs-config.js
and added following code
/public_html/app/design/frontend/TemplateMonster/theme007/Magento_ConfigurableProduct/requirejs-config.js
var config = {
map: {
'*': {
configurable: 'Magento_ConfigurableProduct/js/configurable'
}
}
};
Best Answer
Need to run :
rm -rf var/generation/ var/view_preprocessed/ pub/static/frontend/ pub/static/_requirejs/ var/cache var/di var/page_cache pub/static/_cache
./bin/magento setup:static-content:deploy