Closed asevich closed 1 year ago
Hi @asevich, thank you for submitting this issue.
I am able to reproduce the issue on my side. I have already identified the root cause and is now working on the fix. I will create a new release within this week and let you know once it is available.
@asevich I have released a fix in the v3.2.1. Let me know if it doesn't work.
@icelam works like a charm. Thank you for swift fix!
Hi!
Script is not being inlined if HtmlWebpackPlugin
filename
is set with extra folder, i.e../frontend/ui.html
instead ofui.html
Environment and package version
Webpack 5.88.2, HTML webpack plugin 5.5.3 , HTML inline script plugin 3.2.0
Reproduction link / code sample
webpack.config.js
package.json
src/ui.html
src/ui.ts
Steps to reproduce
In
webpack.config.js
instead of supplyingfilename: "ui.html"
as an output filename, usefilename: "./frontend/ui.html"
What is expected?
Javascript is inlined in
dist/frontend/ui.html
What is actually happening?
Javascript is not inlined in
dist/frontend/ui.html
anddist/frontend/main.[hash].js
file is generated