Skip to content

Commit

Permalink
Add snippetFolder in projects
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo930021 committed Nov 26, 2020
1 parent 156cb96 commit dbc38bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rfcs/001-vetur-config-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ module.exports = {
// Where is TypeScript config file in the project?
// It is relative to root property.
tsconfig: './tsconfig.json',
// **optional** default: `'./.vscode/vetur/snippets'`
// Where is vetur custom snippets folders?
snippetFolder: './.vscode/vetur/snippets'
// **optional** default: `[]`
// Register globally Vue component glob.
// If you set it, you can get completion by that components.
Expand Down Expand Up @@ -108,6 +111,7 @@ export interface VeturConfig {
root: string,
package?: string,
tsconfig?: string,
snippetFolder?: string,
globalComponents?: Array<Glob | { name: string, path: string }>
}>
}
Expand Down Expand Up @@ -175,6 +179,9 @@ It can reduce development and maintenance costs.

PS. `jsconfig.json` is also support it.

### `projects[].snippetFolder`
Vetur Custom snippets folder path

### `projects[].globalComponents`
We have some amazing features, Like `template interpolation`.
But it only work when register component in component.
Expand Down

0 comments on commit dbc38bf

Please sign in to comment.