Skip to content

Commit

Permalink
Add instructions on how to use alias and root options
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaggen authored and ljharb committed Jul 3, 2017
1 parent 5b3e8ea commit 58abcf5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,28 @@ npm install --save-dev babel-plugin-inline-react-svg
]
]
}
```
- *`alias`* - An object with alias for module resolution
- *`root`* - A relative path string (Starting from CWD), it only works in conjunction with alias.
Example:

```json
{
"plugins": [
[
"inline-react-svg", {
"root": "./",
"alias": {
"svgs": "svgs"
}
}
]
]
}
```

**Note:** If root is not specified it will always start resolving from the project root

### Via CLI

```sh
Expand Down

0 comments on commit 58abcf5

Please sign in to comment.