with-es6 icon indicating copy to clipboard operation
with-es6 copied to clipboard

Wrong SRC to assets

Open a00andos opened this issue 9 years ago • 1 comments

Hey!

I think the SRC in the index file for the asset are wrong.

link rel="stylesheet" href="/app.css">
<script src="/vendor.js"></script>
<script src="/app.js"></script>

Should it not be without be without the first / (slash) to successfully load the assets after a build:

link rel="stylesheet" href="app.css">
<script src="vendor.js"></script>
<script src="app.js"></script>

I believe this error also exist in the dead simple skeleton... Those two are the ones I tried before realizing this.

a00andos avatar Sep 08 '17 14:09 a00andos

Leading '/' is for the server. In other words when you start the skeleton app with

npm start

Of course if you want to load it from the disk the path is incorrect. So it is not a bug.

nomuna avatar Oct 12 '21 04:10 nomuna