New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提升本地开发体验 #11

Closed
nicejade opened this Issue May 28, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@nicejade
Copy link
Owner

nicejade commented May 28, 2018

故事

  1. 很多项目在运行时候默认了本地运行端口(如 8080 ),虽然也支持外部传递端口,如 PORT=8888 yarn start;但,如果这些端口在本地被占用了,会存在报错,导致不能顺利得运行;在更改端口继续运行,这十分浪费时间;有必要进行优化;如果指定的端口被占用,就寻址新的可能端口,这可以极大提升开发体验( vue-cli3 就内置了这些功能 👏🏻)。

  2. 当我们运行项目时候,会设定在浏览器自动打开对应开发地址(新 Tab 栏);然而,当再次运行时候,如果浏览器已经存在先前打开的地址,就不应该再打开一个;( vue-cli3 也内置了这些功能 👏🏻,这是参考了 create-react-app | openBrowser 的实现 )。

为提升本地开发体验,需要对这两点进行优化。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment