Closed surgeboris closed 5 years ago
I'll have to take a look at html-webpack-plugin@4
support, I'll get back to you.
I think I know the change that broke it, but I'll have to find some time to try and test a fix with the 4.x
beta.
Ok, I fixed the issue, released in 2.0.6.
I figured out a way to make this plugin's test suite run against both versions of html-webpack-plugin
so I'm now confident that it works with both. :-)
2.0.6 works for me now. This issue can be closed.
Hi @jharris4 , I have the same error for : node v10.15.3 "webpack": "^4.32.0", "html-webpack-plugin": "^3.2.0", "html-webpack-tags-plugin": "^2.0.12"
What versions should I use to fix the problem? Regards
@raman-kazhadub all versions should be working.
There's a good chance you haven't put the html-webpack-plugin
before the html-webpack-tags-plugin
in the plugins array in your webpack config.
If you share more details about your webpack config I can try and offer some suggestions.
@jharris4 , Please see the example here: https://github.com/raman-kazhadub/react-typescript-webpack4 try to use npm run build:dev or yarn build:dev
@raman-kazhadub ok I looked at your webpack config and I see that you are using the speed-measure-webpack-plugin.
It looks like you are having the same issue as #35
Can you try removing the speed-measure-webpack-plugin
and see if that fixes the issue?
I'm using
webpack@4.30.0
, so (as far as I understand) I supposed to usehtml-webpack-plugin@4.0.0-beta.5
(previous versions wouldn't work, would they?).With
html-webpack-include-assets-plugin@1.0.10
everything works correctly, but when I'm trying to usehtml-webpack-tags-plugin@2.0.5
(orhtml-webpack-include-assets-plugin@2.0.0
) the build breaks with the following error:To me it looks like a regression, although it might be version mismatch or plugin misuse on my side. Do you have any idea what's the problem here?