在webpack.config文件中添加
var OpenBrowserPlugin = require('open-browser-webpack-plugin'); plugins: [ new OpenBrowserPlugin({ url: 'http://localhost:8080' }) ]则在webpack 启动成功后会打开浏览器
参考文档 https://www.npmjs.com/package/open-browser-webpack-plugin
新闻热点
疑难解答