output: { path: './dist', filename: 'js/[name].bundle.js'},上面这段代码报错:Hanger:wp3 Hanger$ webpackInvalid 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!文件结构如下:
1 回答

三国纷争
TA贡献1804条经验 获得超7个赞
你试下这
var path = require('path')
output: {
path: path.resolve(__dirname, './dist'),
filename: 'js/[name].bundle.js'
},
添加回答
举报
0/150
提交
取消