fix(cli-service): catch exception if "copy to clipboard" fails (issue #3476) (#3503)

close #3476
This commit is contained in:
Jonas
2019-02-26 16:53:13 +01:00
committed by Haoqun Jiang
parent 6e9ba9beb1
commit fec38f5541
2 changed files with 11 additions and 2 deletions
+5
View File
@@ -52,6 +52,11 @@ Options:
--https use https (default: false)
```
::: tip --copy
Copying to clipboard might not work on a few platforms.
If copying was successful, `(copied to clipboard)` is displayed next to the local dev server URL.
:::
The `vue-cli-service serve` command starts a dev server (based on [webpack-dev-server](https://github.com/webpack/webpack-dev-server)) that comes with Hot-Module-Replacement (HMR) working out of the box.
In addition to the command line flags, you can also configure the dev server using the [devServer](../config/#devserver) field in `vue.config.js`.