請(qǐng)教,卡在這個(gè)問題 Entrypoint undefined = index.html ,頁面空白,著急
target: "web",
entry: path.join(__dirname,'src/index.js'),
output:{
filename: 'bundle.js',
path: path.join(__dirname,'dist')
},
target: "web",
entry: path.join(__dirname,'src/index.js'),
output:{
filename: 'bundle.js',
path: path.join(__dirname,'dist')
},
2019-03-06
舉報(bào)
2019-04-12
if(isDev){
config.devServer = {
port: 8008,
host:'localhost',
overlay:{
errors:true,
}
}
}
將post改為localhost就可以解決這個(gè)問題
2019-03-31
遇到一樣的問題,都是基于webpack 4.29.6出現(xiàn)的問題~不能訪問 localhost:8000
2019-03-12
可以參考我的源碼,基于webpack版本4.29.6。https://github.com/nakuYK/TODO