I am working hard to include a simple footer.html, as an html partial) via html-loader. I am using webpack version 2.
I failed trying to use ${require('**./footer.html**')} and ${require('**../footer.html**')}.
I am not using ejs loader and I do not use the handlebar plugin.
Does somebody know how I can fix this problem and whether it possible to render partials with webpack.
Thanks for your advice!
I use html-loader and simply add
<%= require('html-loader!./partial/header.html') %>
to my main index.html. Thats work for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With