test:/\.ejs$/,
use:'ejs-loader'
},
//处理页面中以html为结尾的文件,使用了这个插件...中的变量将不再有效果
{
test:/\.html$/,
use:'html-loader'
},
//下面这个插件会将页面中的变量解析为正常的...html文件,如何要在页面中使用htmlwebpackplugin变量则需要注释这个插件
// {
// test: /\.css$/,...},
plugins: [
new ExtractTextPlugin({filename: 'css/[name].css'}),//样式压缩
//创建一个新的页面在...//js也在一行
},
// hash: true,
// chunks: ['index'],
// xhtml