I want to override full js file instead of js components or widgets When I try to place the file in my custom theme with the appropriate path, still it's getting deployed from vendor not from override one.

I want it to be deploy from my custom theme, app/design/frontend/Custom/Theme/Magento_ConfigurableProduct/js/configurable.js

After setup:static-content:deploy it's still creating from vendor

pub/static/frontend/Custom/Theme/en_US/Magento_ConfigurableProduct/js/configurable.js this is generated from vendor

1 Answer 1


You should place it in app/design/frontend/Custom/Theme/Magento_ConfigurableProduct/web/js/configurable.js you are missing the web folder in the path.

Then you should clear your pub/static folder and run php bin/magento setup:static-content:deploy


Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.