+ '/app/main2.js',
// index3:__dirname + '/app/main3.js',
},
output: {
//需要打包后的文件.../public",//本地服务器所加载的页面所在的目录
// stats:{
// colors: true,//终端中输出结果为彩色---没有颜色了...ejs为结尾的文件
{
test:/\.ejs$/,
use:'ejs-loader'
},
//...处理页面中以html为结尾的文件,使用了这个插件,ejs中的变量将不再有效果
{
test:/\.html$/,
use:'html-loader...},
plugins: [
new ExtractTextPlugin({filename: 'css/[name].css'}),//样式压缩
//创建一个新的页面在