UNPKG

wordpress-shortcode-webpack-plugin

Version:
26 lines (25 loc) 721 B
import { Compiler as Webpack4Compiler } from 'webpack4'; import { Compiler as Webpack5Compiler } from 'webpack5'; import { PluginHeaderFields } from './template'; export interface PluginOptions { wordpressPluginName: string; shortcodePrefix?: string; pluginTemplate?: string; headerFields?: PluginHeaderFields; entryToRootId?: { [entry: string]: string; }; } export interface Manifest { id: string; entries: { [key: string]: Entry; }; } declare type Entry = string[]; export declare class WordpressShortcodeWebpackPlugin { options: PluginOptions; constructor(options: PluginOptions); apply(compiler: Webpack4Compiler | Webpack5Compiler): void; } export {};