I wrote a simple template
test.html
<div>raw text with content</div>
all i want to do is request a raw file unchanged
like
require('./test.html'); // should return "<div>raw text with content</div>"
I tried loading html with an extra text plugin but it does not work
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports =
{
module:
{
loaders:
[
{ test: /\.html$/, loader: 'html' }
]
},
plugins: [
new ExtractTextPlugin("[name].html")
]
};
source
share