Using CSS Frameworks
Although this may seem like a no brainer, I'd suggest you import your third-party CSS libraries into webpack using the
style-loader, which is already setup for you.
Say you want to use bootstrap, bulma, or materialize for your application. Go ahead and install your library from
npm like you normally would, but instead of attaching the asset to
npm install bulma --save
src/renderer/main.js let's add this line.
Alternatively, you can also include
bulma from inside a component file.
<style> @import "~bulma/css/bulma.css"; </style>
webpack will know to load in
bulma for our application and make it available in our production builds.