title: Getting 404 for static assets in vue cli project
body: <p>I am finding it hard to deploy a project with vue webpack template. We are serving a Laravel app with nginx in our server. So opening <code>www.example.com</code> serves our laravel installation. Now I wanted to use <code>www.example.com/lite</code> to serve the lite version of the app which is an SPA build with <code>vue-webpack</code> template. And for that I created a location block in our nginx configuration </p>
  
  <pre><code>location /lite {
                  # First attempt to serve request as file, then
                  # as directory, then fall back to displaying a 404.
                  #try_files $uri $uri/ =404;
                  index  index.html index.htm;
                  alias /var/www/html/crm-lite/dist;
                  try_files $uri $uri/ /index.html;
          }
  </code></pre>
  
  <p>And I have changed <code>assetsPublicPath</code> to <code>assetsPublicPath: '/lite'</code> in <code>build/index.js</code>; But when I open it on browse I am getting 404 not found for the static assets. The url looks like this <code>http://example.com/lite/static/js/app.3c11ea8ceff19f8f33ff.js</code></p>
  
  <p>If i copy the contents of the <code>dist/</code> folder into our document root and open it with only ip address it works fine. Is there any configuaration i am missing? Thanks for help.</p>