Skip to content

Can not config HMR #1580

Closed
Closed
@roman-orlovskiy

Description

@roman-orlovskiy

I wanted to add HMR without refresh page.
I ejected project, and modify webpack.config.dev.
But HMR not worked.

I found, that url loader breaks HMR:

  {
    exclude: [
      /\.html$/,
      /\.(js|jsx)$/,
      /\.css$/,
      /\.json$/,
      /\.svg$/
    ],
    loader: 'url',
    query: {
      limit: 10000,
      name: 'static/media/[name].[hash:8].[ext]'
    }
  }

If i remove "exclude" parameter and added custom "test", all works fine.

I spent for found this for about two days and, i think it needs to move to custom "test" field.

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