這是什么報錯?
?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'
}
]
}
}
2018-10-22
解決了嗎?我也是這樣。
2018-02-28
沒有發(fā)現(xiàn)什么問題呃。。跟我的代碼 一樣