在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML/ 安裝vue-cli以后,build文件夾下面沒有dev-server.js文件,

安裝vue-cli以后,build文件夾下面沒有dev-server.js文件,瀏覽器也不再自動打開。

圖片描述

執(zhí)行npm run dev 命令后,會給一個URL:http://localhost:8081/,而不是自動打開默認(rèn)瀏覽器。

回答
編輯回答
神曲

更新說明

New /config/index.js options (#975)

dev:
autoOpenBrowser: Wether to open a new browser tab whenever the dev server starts.
useEslint: Wether to use eslint-loader in webpack. Some people might only want to use eslint in their IDE, so the loader can be deactivated here.
showEslintErrorsInOverlay: if using eslint-loader, this option allows to switch of the eslint errors in the error overlay shown in the browser. the errors still appear in the console & terminal, but don't break the workflow in the browser anymore.
notifyOnErrors: will show OS notifications whenever a build fails. Useful when your builds take some time
poll: enables polling mode for webpack's file-change watcher. The default mode doesn't work in some environments, like dropbox folders, Vagrant etc. so switching to polling can fix this.
you can now change sourcemap-related options for the dev and prod builds in the config file.

2017年10月4日 02:09
編輯回答
柒槿年

config/index.js中,把a(bǔ)utoOpenBrowser改成true,就能自動打瀏覽器了,親測可用。
圖片描述

2018年8月17日 13:00
編輯回答
不舍棄

我也遇到這個問題,真坑爹,現(xiàn)在想寫服務(wù)端也寫不了,自己寫又會出很多問題

2017年6月9日 14:07