1.編譯時(shí)候遇到Eslint語法格式報(bào)錯(cuò)的問題
可以暫時(shí)注釋掉 build/webpack.base.conf.js中的eslint匹配驗(yàn)證就可以了,刪掉以后重新啟動(dòng)一下項(xiàng)目就可以,解決那些嚴(yán)格的限制了
module: {
rules: [
/*暫時(shí)去掉Eslint的語法檢查*/
/* ...(config.dev.useEslint? [{
test: /\.(js|vue)$/,
loader: 'eslint-loader',
enforce: 'pre',
include: [resolve('src'), resolve('test')],
options: {
formatter: require('eslint-friendly-formatter'),
emitWarning: !config.dev.showEslintErrorsInOverlay
}
}] : []),*/
]
}
2.開發(fā)時(shí)候想方便在手機(jī)上調(diào)試,可以把config/index.js里面的 host 地址為 0.0.0.0

image.png