Skip to content

Commit ab008c5

Browse files
chiaweileehaoqunjiang
authored andcommitted
docs: add a warning on running vue-cli-service serve [entry] in a multi-page setup (#3404)
1 parent 85c31cf commit ab008c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/guide/cli-service.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ The `vue-cli-service serve` command starts a dev server (based on [webpack-dev-s
5656

5757
In addition to the command line flags, you can also configure the dev server using the [devServer](../config/#devserver) field in `vue.config.js`.
5858

59+
`[entry]` in the CLI command is defined as *the entry file*, not *an additional entry file*. If you overwrite the entry in the CLI, then the entries from `config.pages` are no longer considered, which may cause an error.
60+
5961
## vue-cli-service build
6062

6163
```

0 commit comments

Comments
 (0)