I am working on a legacy project (based on jQuery). Some CSS is added with Javascript by simply appending the style-tag to the header:
$("head").append("<link href='" + path + "' rel='stylesheet' type='text/css' media='screen' />")
I cannot rewrite the code using CSS modules so I am wondering if there is a way to bundle this CSS that gets injected via Javascript using Webpack 5.