Level 3
Can I do something like this :
if (Mix.isUsing('hmr')) {
someconfigforserverroot = 'http://localhost:8080'
}
When I use hot module reloading with laravel, like with npm run hmr, I have to change my script links, like replacing <script src="/js/app.js"></script> with <script src="http://localhost:8080/js/app.js"></script>.
Is there a way I can automatically serve some files from "localhost:8080" when running npm run hmr ?
Please or to participate in this conversation.