天蓬老师2017-04-17 16:37:38
By default (if you don't specify any loader in any way) a fallback ejs loader kicks in.
If there is no pinned loader, ejs will be used as the template engine by default.
So you can display the specified html-loader
{
module: {
loaders: [
{
test: /\.html$/,
loader: 'html-loader'
},
},
plugins: [
new HtmlWebpackPlugin({
template: 'src/index.html'
})
]
}