File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ The version string for the **project local** `@vue/cli-service` version that is
44
44
## resolve
45
45
46
46
- ** Arguments**
47
- - ` {string} _path ` - relative path from project root
47
+ - ` {string} ..._paths ` - A sequence of relative paths or path segments
48
48
49
49
- ** Returns**
50
- - ` {string} ` - the resolved absolute path
50
+ - ` {string} ` - the resolved absolute path, caculated based on the current project root
51
51
52
52
- ** Usage** :
53
53
Resolve a path for the current project
Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ class GeneratorAPI {
68
68
/**
69
69
* Resolve path for a project.
70
70
*
71
- * @param {string } _path - Relative path from project root
72
- * @return {string } The resolved absolute path.
71
+ * @param {string } _paths - A sequence of relative paths or path segments
72
+ * @return {string } The resolved absolute path, caculated based on the current project root .
73
73
*/
74
- resolve ( _path ) {
75
- return path . resolve ( this . generator . context , _path )
74
+ resolve ( ... _paths ) {
75
+ return path . resolve ( this . generator . context , ... _paths )
76
76
}
77
77
78
78
get cliVersion ( ) {
You can’t perform that action at this time.
0 commit comments