-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add sass and bootstrap setup in the documentation
- Loading branch information
1 parent
4b1cae6
commit e5c4954
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,20 @@ You can easily build a new app from scratch or integrate some components into an | |
|
||
## Getting Started | ||
|
||
Make you sure that [sass](https://www.npmjs.com/package/sass) and [bootstrap](https://www.npmjs.com/package/bootstrap) modules are installed : | ||
|
||
```sh | ||
npm install -D sass | ||
npm install [email protected] | ||
``` | ||
|
||
After installing bootstrap, add these css imports in the root file of your components tree : | ||
|
||
```js | ||
import 'bootstrap/scss/bootstrap-grid.scss'; | ||
import 'bootstrap/scss/bootstrap-reboot.scss'; | ||
``` | ||
|
||
You can either install everything and use only what you need. If you do that you will be able to use tree shaking to have a smaller bundle. | ||
However, you will need to import all the styles and not only the style related to your component. | ||
|
||
|