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