I want to include my own js or include only a few js in require.js, but need to exclude all js files / css files being loaded default by Magneto or any module.
It is explained here:
As per the docs, I should include in my:
<remove src="Magento_Catalog::js/compare.js" />
I have done exactly that but it doesn't seem to be working.
but it is working for other instances for example
This line is removing
In a nutshell, I want to remove all js (barring few) from my custom theme.