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

Home > @lynx-js/template-webpack-plugin > LynxDebugMetadataPlugin > defaultOptions

LynxDebugMetadataPlugin.defaultOptions property

defaultOptions is the default options that the LynxDebugMetadataPlugin uses.

Signature:

static defaultOptions: Readonly<Omit<Required<LynxDebugMetadataPluginOptions>, 'LynxTemplatePlugin'>>;

Example

defaultOptions can be used to change part of the option and keep others as the default value.

// webpack.config.js
import { LynxDebugMetadataPlugin } from '@lynx-js/template-webpack-plugin'
export default {
  plugins: [
    new LynxDebugMetadataPlugin({
      ...LynxDebugMetadataPlugin.defaultOptions,
      debugMetadataAssetName: DEBUG_METADATA_ASSET_NAME,
    }),
  ],
}