Reputation: 101
this is probably a really stupid question, but it'd be awesome if you could help me.
Here's the problem: I've added a package to my project. It contains some css files which I want to use in my HTML files and so on. I've added it by using yarn add <package>
. The files are located inside /node_modules/semantic-ui-css/semantic.min.css
.
Do I have to reference complete node_module path to load the css file inside my HTML file? That just doesn't sound right. Before I used a package manager I just downloaded a few css files, placed them into /vendor/css/
and used them.
Or is it normal these days to use <link rel="stylesheet" type="text/css" href="node_modules/semantic-ui-css/semantic.min.css">
?
Upvotes: 3
Views: 2044