can't use template option,but templateContent option work
namigongyi opened this issue · 1 comments
Current behaviour 💣
When i use template option , it has a error.
Html Webpack Plugin:
Error: module is not defined
-
index.html:13 Object.data:text/javascript,webpack_public_path = webpack_base_uri = htmlWebpackPluginPublicPath;
D:/moli/mmgs_front/public/index.html:13:1 -
index.html:55 webpack_require
D:/moli/mmgs_front/public/index.html:55:42 -
index.html:86
D:/moli/mmgs_front/public/index.html:86:11 -
index.html:91
D:/moli/mmgs_front/public/index.html:91:12 -
index.js:142 HtmlWebpackPlugin.evaluateCompilationResult
[mmgs_front]/[html-webpack-plugin]/index.js:142:28 -
index.js:324
[mmgs_front]/[html-webpack-plugin]/index.js:324:26 -
runMicrotasks
-
task_queues.js:95 processTicksAndRejections
internal/process/task_queues.js:95:5 -
async Promise.all
Expected behaviour ☀️
If i use templateContent option, it work
Reproduction Example 👾
Environment 🖥
node -14.18.0
webpack @5.37.0
webpack-cli @4.10.0
webpack-dev-server @4.10.0
html-webpack-plugin @5.5.0
webpack-manifest-plugin @3.1.0
same as #1589