Skip to content

Commit

Permalink
docs: Multi-Page App note when using 'root' (#2939)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVirtuoid committed Apr 11, 2021
1 parent b8325a0 commit 1e3cd99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ module.exports = {
}
```

If you specify a different root, remember that `__dirname` will still be the folder of your vite.config.js file when resolving the input paths. Therfore, you will need to add your `root` entry to the arguments for `resolve`.

## Library Mode

When you are developing a browser-oriented library, you are likely spending most of the time on a test/demo page that imports your actual library. With Vite, you can use your `index.html` for that purpose to get the smooth development experience.
Expand Down

0 comments on commit 1e3cd99

Please sign in to comment.