// const os = require('os')
// const networkInterfaces = os.networkInterfaces()
// const ip = networkInterfaces['以太网'][1] ? networkInterfaces['以太网'][1].address : networkInterfaces['以太网'][0].address
// console.log(ip)

module.exports = {
  // 在开发和构建时,只警告 lint 错误,不阻塞编译
  lintOnSave: 'warning',
  configureWebpack: {
    devtool: 'source-map'
  },
  devServer: {
    port: 8090,
    host: '0.0.0.0',
    https: false,
    open: false
  },
  // Webpack 5 性能优化
  parallel: true,
  // 确保兼容性
  transpileDependencies: []
}
