A small project currently being done is completely independent of the network environment (offline)
, so there is no room for localhost and so on.
A local service is opened during development, so everything is fine
but there is a path problem after build
for example:
<script src=/js/app.0db279ae.js></script>
this path will be parsed to
by the browser.file:///js/app.0db279ae.js
mm-hmm.
so it can only be written as a relative path
<script src=js/app.0db279ae.js></script>
the question is, how do you configure it?
looked it up on the Internet, but I couldn"t find any valid information, so I came to ask for advice.