output.filename is required??
filename不用加js,你的path已经设置好路径了。
<!--webpack.config.js文件配置-->
const path = require('path')
module.exports ={
entry:'./src/script/main.js',
output:{
path:path.join(__dirname,'./dist/js'),
filename:'js/bundle.js'
}