File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 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
4444## resolve
4545
4646- ** Arguments**
47- - ` {string} _path ` - relative path from project root
47+ - ` {string} ..._paths ` - A sequence of relative paths or path segments
4848
4949- ** Returns**
50- - ` {string} ` - the resolved absolute path
50+ - ` {string} ` - the resolved absolute path, caculated based on the current project root
5151
5252- ** Usage** :
5353Resolve a path for the current project
Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ class GeneratorAPI {
6868 /**
6969 * Resolve path for a project.
7070 *
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 .
7373 */
74- resolve ( _path ) {
75- return path . resolve ( this . generator . context , _path )
74+ resolve ( ... _paths ) {
75+ return path . resolve ( this . generator . context , ... _paths )
7676 }
7777
7878 get cliVersion ( ) {
You can’t perform that action at this time.
0 commit comments