Open isaacl opened 3 years ago
Hello!
I am experimenting the same issue in this repo.
Related: https://github.com/webpack-contrib/html-loader/issues/329
@terox I had two issues in my package. 1) extract-loader does NOT handle script src properly. Solution: use absolute links to make html-loader ignore them, or turn them off in html-loader options 2) You cannot combine extract-loader with minicssplugin.
Here's my current config, which works. https://gist.github.com/isaacl/64f689595ad5fb959b0565cc50514ae2
I also wrote this hacky script to fix the script tag manually post-build: https://gist.github.com/isaacl/7f8f3855c151f7fb21d8213b9cbde1ac
@isaacl I updated my master branch with a couple of useful PR from the main project that fix this issue and alises: https://github.com/terox/extract-loader
I'm hitting a weird bug w/ html-loader, possibly related to webpack 5? Any ideas/suggestions?
Thanks! -Isaac
Test repo
output: