CSS: ExtractTextPlugin & Hot Module Reload #1481

Closed
opened 2025-08-09 17:20:18 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @p-m-j on 7/23/2016

For me CSS reloading is one of the most important things.
This currently doesn't work out of the box with the Angular2 template.

My solution at the moment is to switch out the loader when in development.
{ test: /\.css/, loader: isDevelopment ? "style-loader!css-loader" : ExtractTextPlugin.extract(styles) }

If this is a suitable solution and there isn't a better way to solve the problem I will gladly throw together a pull request?

*Originally created by @p-m-j on 7/23/2016* For me CSS reloading is one of the most important things. This currently doesn't work out of the box with the Angular2 template. My solution at the moment is to switch out the loader when in development. `{ test: /\.css/, loader: isDevelopment ? "style-loader!css-loader" : ExtractTextPlugin.extract(styles) }` If this is a suitable solution and there isn't a better way to solve the problem I will gladly throw together a pull request?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1481
No description provided.