Skip to content

Commit c8dbd72

Browse files
committed
docs: clarify specificity baseUrl usage #10
1 parent 647fce1 commit c8dbd72

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,20 @@ and replace `react-scripts` in `package.json`:
180180
}
181181
```
182182

183+
184+
#### Using baseUrl
185+
186+
* **`baseUrl = '.'`**
187+
188+
* able to create alias outside of `src` (near `src`)
189+
* for each directory in `src` alias **does not** created automatically (must be declared manually)
190+
191+
* **baseUrl = 'src'**
192+
193+
* alias outside of `src` is not possible, only in directory specified in `baseUrl`
194+
* for each folder in `src` alias created automatically with same name as folder
195+
196+
183197
#### API
184198

185199
* **options**

0 commit comments

Comments
 (0)