Skip to content

Commit

Permalink
New find vetur.config.js logic
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo930021 committed Oct 15, 2020
1 parent 1b7b439 commit 1bff568
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rfcs/001-vetur-config-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ module.exports = {
- UTF-8 charset

## How to use
Only useful for `vetur.config.js` file in root.
Ignore all `vetur.config.js` except root directory.
The only exception is when the VSCode Multi root, Vetur will read all roots vetur.config.js acting on the respective root.

### VTI
You can use it to override VTI default settings.
Expand All @@ -92,6 +89,11 @@ It will find it when Vetur initialization.
If it isn't exist, It will use `{ settings: {}, monorepos: [{ root: './' }] }`.
This will ensure consistency with past behavior.

### How to find `vetur.config.js`
- Same as finding `tsconfig.json` logic in TypeScript.
- Start from the root and work your way up until you find it.
- The root is set `process.cwd()` value in VTI and you can set file path in CLI params.

PS. Each root can have its own vetur.config.js in VSCode Multi root feature.

## Property detail
Expand Down

0 comments on commit 1bff568

Please sign in to comment.