html-webpack-plugin: template can't use loaders
In documentation I found that
template: Path to the template. Supports loaders e.g. html!./index.html
But in a current vercion it seems that it’s broken functionality.
new HtmlWebpackPlugin({
title: 'index',
filename: '/index.html', // relative path from "output" directory
template: "html?interpolate!"+srcDir + '/test.html' // source file
})
allways fails with
ERROR in HtmlWebpackPlugin: Unable to read HTML template “html-minify!.\src\test.html”
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 23 (11 by maintainers)
Sorry, but your example also fails. Mayby becouse I use windows?