Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.output.path: The provided value "./dist" is not an absolute path!
var path = require('path');
output:{
path: path.resolve(__dirname, './build'),
filename:'build.js'
},
path.resolve(__dirname,'./dist/js')
configuration.output.path 路径现在必须是绝对路径了,你可以用node 的path.resolve来生成绝对路径