Statement "no loader defined => falls back to ejs/lodash" is simply not true
rowild opened this issue · 2 comments
The documentation, under "Writing your own templates"
https://github.com/jantimon/html-webpack-plugin#writing-your-own-templates
claims that lodash is used "out of the box", if no loader is defined. But that is simply not true. This sandbox proves it:
https://codesandbox.io/s/divine-bird-rqtqz
This template provides a working pug configuration alongside the failing html template configuration.
If I am wrong, would you please be so kind as to point out what the culprit is?
And if I am right, is there any chance to fix this problem?
Thank you!
Sorry I have a hard time to understand what you mean..
html-webpack-plugin willl add a small lodash based template loader - this loader checks if another loader is registered for the very same file and bail out if needed:
html-webpack-plugin/lib/loader.js
Lines 13 to 16 in 2f5de7a
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days.