北京经济技术开发区经开区虚拟城市项目-【前端】-移动端Web
少年
2024-03-13 0cae92b7ed0a080f74df6a30c0d68d2d0b45ec70
build/webpack.dev.conf.js
@@ -110,11 +110,16 @@
      // Add FriendlyErrorsPlugin
      devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
        compilationSuccessInfo: {
          messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
          // messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
          messages: [
            `App runing at:`,
            `Local: http://localhost:${port}`,
            `Network: http://${require('ip').address()}:${port}`,
          ],
        },
        onErrors: config.dev.notifyOnErrors
        ? utils.createNotifierCallback()
        : undefined
          ? utils.createNotifierCallback()
          : undefined
      }))
      resolve(devWebpackConfig)