Loading Local File In Browser Referenced Css Or Js
This could be a basic problem but some how is not working for me. Here is my html: <base> tag.
The base URL to be used throughout the document for relative URL addresses.
Since the base URL href is '/', it always start from root. So on local machine it doesn't find any css/js files, as it would check the files from root i.e. C/D/E drive
. And it totally works fine for webserver, since the root would be your public folder.
Get rid of base
tag.
Solution 2:
remove
<base href="/">
edit links with ./ prefix
src="./app/vendor.js"
Post a Comment for "Loading Local File In Browser Referenced Css Or Js"