chore: 初始化平芝126KV断路器线 OP 前端
This commit is contained in:
22
vue.config.js
Normal file
22
vue.config.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// 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: []
|
||||
}
|
||||
Reference in New Issue
Block a user