webpack运行后,提示配置对象无效,求助大牛
module.exports = {
entry: './src/script/main.js',
output: {
filename: 'bundle.js',
path: './dist/js/'
}
}
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/js/" is not an absolute
path!
这个报错提示是配置有问题,要怎么修改呢