I'm trying out stenciljs for the first time. I want to build a little application and not just a reusable web component.
My question is if there's any possibility to add a third-party CSS library like Bootstrap, Skeleton or Bulma to my app.
I tried the following things, but none of them seem to work:
Example 1:
Simply adding a CDN <link rel="stylesheet" href="link-here">
in the index.html
did not work.
Example 2:
I installed the Bulma CSS library with npm
and tried to import it in the app.css
file like this:
@import "../../node_modules/bulma/css/bulma.min.css";
or
@import url("https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css");
The docs say that app.css
is for global styles. But this method didn't work either.
How can I add a third-party CSS library to my stencil project?