how to overwrite a JS file in magento?

by Paul Fan   Last Updated May 22, 2020 22:09 PM

I want to replace this JS.

\vendor\magento\module-catalog\view\base\web\js\price-options.js

I did try override by

\app\design\frontend\(vendor)\(theme)\Magento_Catalog\view\base\web\js\price-options.js

But seems not right...please help



Related Questions


Magento 2 Replace a default JS

Updated March 10, 2016 07:03 AM

Overriding core js

Updated May 15, 2016 08:03 AM

How to override js file in lib folder for admin theme?

Updated December 22, 2017 10:09 AM

Rewriting adminhtml .js file

Updated January 31, 2018 12:09 PM

Override js function in Magento 2

Updated February 20, 2017 05:09 AM