这是什么报错?
throw new Error("'output.filename' is required, either in config file or as --output-filename");
我的代码:
const path = require('path')
module.exports = {
entry: path.join(__dirname, './src/index.js'),
output: {
filename: 'bundle.js',
path: path.join(__dirname, 'dist')
},
module: {
rules: [
{
test: /\.vue?$/,
loader: 'vue-loader'
}
]
}
}