Record Viewer Plugin for Farm
Getting Started
To begin, you'll need to install @farmfe/js-plugin-record-viewer
:
npm install @farmfe/js-plugin-record-viewer --save-dev
or
yarn add -D @farmfe/js-plugin-record-viewer
or
pnpm add -D @farmfe/js-plugin-record-viewer
Configuring the plugin in farm.config.ts
:
import { defineFarmConfig } from '@farmfe/core/dist/config';
import record from '@farmfe/js-plugin-record-viewer';
export default defineFarmConfig({
compilation: {
input: {
index: './index.html'
},
output: {
path: './build'
}
},
plugins: [
record({
})
]
});
Options
RecordViewerOptions
Type:
type RecordViewerOptions = {
host?: string;
port?: number;
}
Default: undefined