Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use bootstrap from node-modules #17

Open
jonalxh opened this issue Jan 14, 2020 · 5 comments
Open

How to use bootstrap from node-modules #17

jonalxh opened this issue Jan 14, 2020 · 5 comments

Comments

@jonalxh
Copy link

jonalxh commented Jan 14, 2020

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?

@michaelbukachi
Copy link
Owner

michaelbukachi commented Jan 14, 2020

Hi.
If you are gonna add bootstrap to vue, I'd recommend following the approach here.

@jonalxh
Copy link
Author

jonalxh commented Jan 14, 2020

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.

@michaelbukachi
Copy link
Owner

Then I'd suggest using Django Static management since they are no longer within the scope of a VueJS app.

@jonalxh
Copy link
Author

jonalxh commented Jan 14, 2020

Do you hace an example?

@michaelbukachi
Copy link
Owner

Not at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants