@farmfe/js-plugin-visualizer
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

Visualizer Plugin for Farm

Getting Started

To begin, you'll need to install @farmfe/visualizer:

npm install @farmfe/visualizer --save-dev

or

yarn add -D @farmfe/visualizer

or

pnpm add -D @farmfe/visualizer

Configuring the plugin in farm.config.ts:

import { defineFarmConfig } from '@farmfe/core/dist/config';
import visualizer from '@farmfe/visualizer'; //  import the plugin

export default defineFarmConfig({
  compilation: {
    input: {
      index: './index.html'
    },
    output: {
      path: './build'
    }
  },
  plugins: [
    // use the visualizer plugin.
    visualizer({
      // custom options here
    })
  ]
});

Options

RecordViewerOptions

Type:

type RecordViewerOptions = {
  /**
   * Specify hostname
   * @default '127.0.0.1'
   */
  host?: string;

  /**
   * Specify port
   * @default 9527
   */
  port?: number;
}

Default: undefined

Credits

Thanks to:

Readme

Keywords

none

Package Sidebar

Install

npm i @farmfe/js-plugin-visualizer

Weekly Downloads

1,251

Version

1.1.3

License

MIT

Unpacked Size

2.03 MB

Total Files

56

Last publish

Collaborators

  • shulandmimi
  • roland_reed
  • wre232114