这是开发预览网站。请访问正式文档 lynxjs.org

Home > @lynx-js/react-refresh-webpack-plugin > ReactRefreshWebpackPlugin

ReactRefreshWebpackPlugin class

ReactRefreshWebpackPlugin allows using fast refresh in ReactLynx.

Signature:

export declare class ReactRefreshWebpackPlugin 

Example

// webpack.config.js
import { ReactRefreshWebpackPlugin } from '@lynx-js/react-refresh-webpack-plugin'
export default {
  plugins: [new ReactRefreshWebpackPlugin()],
}

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Constructs a new instance of the ReactRefreshWebpackPlugin class

Properties

Property

Modifiers

Type

Description

loader

static

string

The loader for react refresh.

Methods

Method

Modifiers

Description

apply(compiler)

The entry point of a webpack plugin.