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 import CSS libraries like Bootstrap? #12

Closed
dmarman opened this issue Feb 4, 2019 · 1 comment
Closed

How to import CSS libraries like Bootstrap? #12

dmarman opened this issue Feb 4, 2019 · 1 comment

Comments

@dmarman
Copy link

dmarman commented Feb 4, 2019

Any hint how could I import other CSS/JS libraries like Bootstrap?

@ericalli
Copy link
Owner

ericalli commented Feb 5, 2019

Sure, the steps below should do the trick:

Step 1: Install Bootstrap and dependancies via NPM

npm install --save bootstrap popper.js

Step 2: Import Bootstrap JavaScripts

Open the file src/javascripts/scripts.js

import 'bootstrap';

Step 3: Import Bootstrap Styles

Open the file src/stylesheets/styles.scss and add the following line to the top:

@import "~bootstrap/scss/bootstrap"; and add the following line to the top:

Let me know how that works out for you!

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