慕粉1628224626
2017-08-07 22:00
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来生成绝对路径
webpack深入与实战
86561 学习 · 721 问题
相似问题