I need to replace vanilla <a>
tag by different tag (<router-link>
) in whole project. The main problem is to do it with some conditions based on href
value (e.g. it should ignore href with "#"
).
I wrote regex, but it was really massive and sometimes cause issues.