北京经济技术开发区经开区虚拟城市项目-【前端】-移动端Web
11
少年
2024-03-13 cc1e183f088cdb069a7b79cb480dc2efcf09baa9
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)