.pipe(gulpwebpack({
module:{
loaders:[{
test:/\.js$/,
loader:'babel'
}]
}
}),null,(err,stats)=>{
log(`Finished '${color.cyan('scripts')}'`,stats.toString({
chunks:false
}))
})
重新编译是loader:'babel'会出现Module build failed: Error: The node API for `babel` has been moved to `babel-core`.这样的错误提示,这是怎么回事?改成loader:'babel-loader'又好了
Caballarii