You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used mint build and the generated HTML file doesn't work locally because it uses <script src="/index.js"></script> (correct: <script src="./index.js"></script>) which makes the computer think I want a file index.js from the top of the drive. I know mint start can work around that but it would be nice to be able to test out mint build locally.
The text was updated successfully, but these errors were encountered:
if deployed on a web server the URL needs to be absolute for the pages of an SPA to work. Usually every URL resolves the index.html which for an URL like this /users/:id would means that it needs to resolve the index.js from location that it reaches which is an absolute path.
If you want to test it locally or build a Chrome or Electron application then you would need relative path, but in this case reloading a page that's on a deeper path would automatically fail.
I'm not against a configuration option or a command line flag for which controls whether the URLs are absolute or relative.
I used
mint build
and the generated HTML file doesn't work locally because it uses<script src="/index.js"></script>
(correct:<script src="./index.js"></script>
) which makes the computer think I want a fileindex.js
from the top of the drive. I knowmint start
can work around that but it would be nice to be able to test outmint build
locally.The text was updated successfully, but these errors were encountered: