ntraykov's avatar

How to use versioning outside of a laravel project

When creating a project that is outside of laravel there is no way to use versioning, because there is no mix directive. One way is to create a Mix.php class and implement this functionality, but my frontend project is only html + css + js. Any ideas?

0 likes
2 replies
ntraykov's avatar

Even if I create Mix.php with the functionality of the mix function, I won't be able to use it, because if I rename index.html to index.php and put mix() there, webpack dev server won't be able to parse index.php.

ntraykov's avatar
ntraykov
OP
Best Answer
Level 11

I figured it out. There is no need to call localhost:8080 directly. The only thing that I have to do is to open my virtual host and point all my assets to localhost:8080. Hot reload works!

As for the versioning, I use versioning only on production, where hot reload does not exist and the problem mentioned above is not valid!

Please or to participate in this conversation.