How to add a <link> tag for CSS file #19305
-
|
I use webpack with mini-css-extract-plugin and html-webpack-plugin and expect the plugins to add a tag for CSS, but for some reason the CSS file is injected via JS rather than a tag. Is there some option in the config that I'm missing? Test repo: https://github.com/AlexeyKosov/test-webpack/tree/single |
Beta Was this translation helpful? Give feedback.
Answered by
AlexeyKosov
Mar 10, 2025
Replies: 1 comment
-
|
Figured it out - I used a dynamic import instead of static. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AlexeyKosov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured it out - I used a dynamic import instead of static.