django-vuejs-tutorial
django-vuejs-tutorial copied to clipboard
How to use bootstrap from node-modules
Hi, I'm trying to add css in my index.html file but I'm unable to do it, I've tried:
<link rel="stylesheet" href='../../node_modules/bootstrap/dist/css/bootstrap.min.css'>
<link rel="stylesheet" href='/node_modules/bootstrap/dist/css/bootstrap.min.css'>
But none of them works, Could you help me please?
Hi. If you are gonna add bootstrap to vue, I'd recommend following the approach here.
But what if I want to use a custom CSS file located at assets or the static folder inside the App? I want to import inside the index.html, not from the JS.
Then I'd suggest using Django Static management since they are no longer within the scope of a VueJS app.
Do you hace an example?
Not at the moment.