'In electron relative paths not working in html file?
I am not able to set path of CSS and other file in my app's login screen.
my project folder structure.
Error i am getting
project's main file
I have added bootstrap and jquery using
npm install <packagename> --save
I have experience in web development using PHP but I am very new in electron development.
Solution 1:[1]
I have fixed the issue by using path like ../../../node_modules/bootstrap/dist/css/bootstrap.min.css
Solution 2:[2]
For me, I had a:
<base href="/index.html" />
in the index.html page, which made the normally relative links absolute-
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | DevXtranet |
| Solution 2 | chrismarx |



