Skip to content

HMR for stylesheets #30

Closed
Closed
@loopmode

Description

@loopmode

Currently, ExtractTextPlugin is used for stylesheets in development mode, and HMR does not work. You need to manually reload the page.

However, there is a really simple fix for this, using css-hot-loader in combination. See webpack-contrib/extract-text-webpack-plugin#384 (comment)

It's a pretty much non-critical change and a big win for developers.
Of course it should only be applied when in development, not when publishing dist.

I wanted to add a separate pull request, but I'm still a bloody noob in terms of github pull requests.
So, unfortunately this addition landed in the same PR I had already created: #28

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions