We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
真机调试的时候,往往需要手机访问,而 localhost 是不能直接被访问,故显示 IP 地址会更方便友好一些
npm install ip --save-dev
const ip = require('ip') // ... compilationSuccessInfo: { messages: [ `Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`, `Your application is running here: http://${ip.address()}:${port}` ] },
The text was updated successfully, but these errors were encountered:
No branches or pull requests
项目启动后,增加 IP 地址提示
The text was updated successfully, but these errors were encountered: