During development there is node_modules
folder in the root directory of our Electron project which contains all packages we have installed. So, during development we can write something like this to import our CSS file to our webpage:
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.css">
How can we include CSS for a project which is intended to be packaged and distributed without node_modules
?
Edit: After some research I found out that node_modules
are not meant to be used this way (see this). Still, if something changes in future please feel free to add your answer.
Link to the repository I started with: https://github.com/electron/electron-quick-start