Skip to content

Commit

Permalink
Fix scss import path (uber#794)
Browse files Browse the repository at this point in the history
Instead of ./node_modules which only works if the file is at root, ~ always resolves to the node_modules folder.
  • Loading branch information
ayarcohaila committed May 4, 2018
1 parent d8ae803 commit c76d5ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ Install react-vis via npm.

Include the built main CSS file in your HTML page or via SASS:
```sass
@import "./node_modules/react-vis/dist/style";
@import "~react-vis/dist/style";
```

You can also select only the styles you want to use. This helps minimize the size of the outputted CSS. Here's an example of importing only the legends styles:
```sass
@import "./node_modules/react-vis/dist/styles/legends";
@import "~react-vis/dist/styles/legends";
```

Import the necessary components from the library...
Expand Down

0 comments on commit c76d5ad

Please sign in to comment.