Path relative imports for app.js and vendor.js
SephReed opened this issue · 1 comments
SephReed commented
The templating engine replaces $bundles
with root relative imports:
<script type="text/javascript" src="/app.js"></script>
<script type="text/javascript" src="/vendor.js"></script>
It should instead be path relative imports
<script type="text/javascript" src="./app.js"></script>
<script type="text/javascript" src="./vendor.js"></script>
Having not relative paths makes it so the dist only works for host root index files. Having relatives paths would work for that and every other subpath.
vegarringdal commented
Have you tried adding publicPath option ?
webIndex: {
publicPath: "./",
template: "./src/index.html",
}