-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Webpack Hot Module Replacement to inject external css <link href=> instead of inline <style></style> #599
Comments
I figured out how to do it. My post here explains it. |
Just to clarify this is not reloading the page at all right? (as hmr would imply) I've seen it where it replaces the css but still causes a refresh. |
sorry this may sound super rule but I'm closing long standing issues and refactoring the codebase. If you run into this problem again feel free to open another issue |
[X ] feature request
Currently Webpack HMR appends inlined style tags to the head in the form of <style></style> tags. This makes it difficult to view which component each css class belongs to, because the CSS inspector pane normally says "buttons.scss" when using with sourcemaps.
Now it just says
<style>...</style>
in the right hand pane.When dealing with many css classes, its very difficult to know which component to go into to begin styling without it telling me which component's class is active.
Here is what most CSS developers are used to and expect:
It says frameworks-10c1164.css is the source of the class, therefore I know to go to that file/component to make changes.
It would be ideal if webpack HMR preserved this standard CSS workflow while still enabling HMR. A simple solution is to simply appent external styles to the head such as and then swap out that tag when HMR sends an update.
Is it feasible?
The text was updated successfully, but these errors were encountered: