Skip to content

Commit 53cc2dd

Browse files
docs: add @source alias (#2314)
See #2308
1 parent 22bae47 commit 53cc2dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/docs/docs/guide/assets.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ You can also use the `~` prefix to explicitly specify this is a webpack module r
1717
![Image from dependency](~some-dependency/image.png)
1818
```
1919

20+
One alias that is added by default is `@source`, if you follow the recommended [Directory Structure](./directory-structure.md) this is the `docs` folder.
21+
22+
``` md
23+
![Image from images folder](~@source/images/image.png)
24+
```
25+
2026
Webpack aliases can be configured via [configureWebpack](../config/README.md#configurewebpack) in `.vuepress/config.js`. Example:
2127

2228
``` js

0 commit comments

Comments
 (0)