到这里还和课程一样,然后添加了下面的代码就崩了
const path = require('path')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
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'
}, {
test: /\.css$/,
use: ["vue-style-loader", "css-loader"]
}]
},
plugins:[
new VueLoaderPlugin()
]
}