UNPKG

@codelet/app-json-webpack-plugin

Version:

webpack plugin inject chunk

12 lines (11 loc) 460 B
import { Compiler, type EntryNormalized } from 'webpack'; export interface AppJsonWebpackPluginOptions { filterPages?: (entryKeys: string[]) => Promise<Record<string, any>>; pageIndex?: string; } export default class AppJsonWebpackPlugin { options: AppJsonWebpackPluginOptions; constructor(options?: AppJsonWebpackPluginOptions); apply(compiler: Compiler): void; getAppJsonPages(entry: EntryNormalized): Promise<Record<string, any>>; }