EfekanKksal that's because you will have to recompile the JS so that a new js/dist/forum.js
is generated inside the flarum/core directory. It seems you are trying to hack your way into core, please I urge you not to do that 🙏 .
You can use a local extender to start writing an extension (you don't need to publish), see: