title: Nuxt SPA without node server
body: <p>I head to create <code>Nuxt SPA</code> with routing and mb API in future like that:</p>
  
  <ol>
  <li>Backend server (on <code>express</code> or smth else) listen and on request give entire SPA to client.</li>
  <li>Now user can use everything on client side (include routing) with no more else requests to backend (mb API requests only)</li>
  </ol>
  
  <p>It means that server should give some <code>.html</code> file with <code>js</code> and <code>css</code> files as <code>SPA</code> and it will work on client side.</p>
  
  <p>I tried to run some commands like <code>nuxt build</code> and <code>nuxt generate</code>
  It looks like they return a same result - <code>js</code> files couldn't be found</p>
  
  <p>And <code>index.html</code> file doesn't work properly</p>
  
  <p>After some researching I found a <a href="https://stackoverflow.com/questions/50809987/vue-cli-build-and-run-index-html-file-without-server">solution</a></p>
  
  <p>But now I got this: <a href="https://i.stack.imgur.com/8A3V8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8A3V8.png" alt="enter image description here"></a></p>
  
  <p>It can't open the fourth <code>js</code> file in another <code>js</code> file. Path isn't right!
  <a href="https://i.stack.imgur.com/7W6WI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7W6WI.png" alt="enter image description here"></a></p>
  
  <p>Every time I tried to run it as a static <code>html</code> file and from localhost (and also with using <a href="https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer" rel="nofollow noreferrer">Live Server</a>)</p>
  
  <p>I think I did a lot of crutches and there should be another built-in function or feature that allows us to do what I want</p>
  
  <p>I wrote a lot - if I made a mistake or you didn't get smth - please, ask! I need any help</p>