自动生成index.html文件 cnpm i html-webpack-plugin -S +const HtmlWebpackPlugin = require('html-webpack-plugin');const config = { ....+ plugins:[+ new HtmlWebpackPlugin({+ title:"webpack-vue"+ }) + ], mode:'development' //模式}module.exports = config;