I've created simple Vue JS App using Vue-cli 3. I have a digitalocean droplet with Nginx + php. My goal is to host Vue App on the same droplet. I have already tried:
- Add certain
location /to nginx conf. - Used this simple node server: https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations
And what I get i sUncaught SyntaxError: Unexpected token <:

Interesting thing, when I use npm run build to make production resources into dist directory and use php -S localhost:8080 it is hosted like a charm. But the same thing with simple node js server causes the result on the screenshot above.
I've been struggling for 2 days straight. Halp me please.