@k88/cra-webpack-hot-dev-client

A Webpack Hot Dev Client taken from Create React App

Usage no npm install needed!

<script type="module">
  import k88CraWebpackHotDevClient from 'https://cdn.skypack.dev/@k88/cra-webpack-hot-dev-client';
</script>

README

@k88/cra-webpack-hot-dev-client

Taken from react-dev-utils, but is published as a standalone plugin and has Typescript definition.

Installation

Install using

npm install @k88/cra-webpack-hot-dev-client

Usage

Add the path to webpack entry:

module.exports = {
    /* webpack configuration */
    entry: [
        isDev && require.resolve('@k88/cra-webpack-hot-dev-client'),
        /* Other entry paths */
    ],
};