extension-develop
Version:
The develop step of Extension.js
26 lines (25 loc) • 811 B
TypeScript
import { type Compiler } from '@rspack/core';
import { ThemeIcon, type FilepathList, type PluginInterface } from '../../webpack-types';
/**
* IconsPlugin is responsible for handling the icon files defined
* in the manifest.json. It emits the icon files to the output
* directory and adds them to the file dependencies of the compilation.
*
* Features supported:
* action.default_icon
* browser_action.default_icon
* icons
* page_action.default_icon
* sidebar_action.default_icon
*/
export declare class IconsPlugin {
readonly manifestPath: string;
readonly includeList?: FilepathList | {
[x: string]: ThemeIcon;
};
readonly excludeList?: FilepathList | {
[x: string]: ThemeIcon;
};
constructor(options: PluginInterface);
apply(compiler: Compiler): void;
}