This is the dev preview website. Check out the document at lynxjs.org

Home > @lynx-js/react-webpack-plugin > ReactWebpackPlugin

ReactWebpackPlugin class

ReactWebpackPlugin allows using ReactLynx with webpack

Signature:

declare class ReactWebpackPlugin 

Example

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

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Constructs a new instance of the ReactWebpackPlugin class

Properties

Property

Modifiers

Type

Description

defaultOptions

static

Readonly<Required<ReactWebpackPluginOptions>>

defaultOptions is the default options that the ReactWebpackPlugin uses.

loaders

static

Record<keyof typeof LAYERS | 'TESTING', string>

The loaders for ReactLynx.

Methods

Method

Modifiers

Description

apply(compiler)

The entry point of a webpack plugin.