1 webpack实现多个输入输出多个html
entry:{ ???????main: ‘./src/main.js‘, ???????login: ‘./src/login.js‘ ???},plugins: [ ???????new HtmlWebpackPlugin({ ???????????filename: ‘index.html‘, ???????????template: ‘./src/index.html‘, ???????????chunks: [‘main‘] ??//将main.js插入到index.html内部, ???????}), ???????new HtmlWebpackPlugin({ ???????????filename: ‘login.html‘, ???????????template: ‘./src/login.html‘, ???????????chunks: [‘login‘] ???????}) ???],
webpack 创建项目过程中遇到的问题和解决方法
原文地址:https://www.cnblogs.com/xhliang/p/8921175.html