UNPKG

@uiw-admin/plugins

Version:
21 lines (20 loc) 706 B
/** * 对项目入口文件进行自动生成 * */ import webpack from 'webpack'; import { PublicConfiguration } from 'swr/dist/types'; export interface InitIndexWebpackPluginProps { swr?: boolean | undefined | Partial<PublicConfiguration>; routeType?: 'history' | 'hash' | 'browser'; } declare class InitIndexWebpackPlugin { globalCss: boolean; swr: InitIndexWebpackPluginProps['swr']; SWRConfig: Partial<PublicConfiguration> | undefined; routeType: InitIndexWebpackPluginProps['routeType']; constructor(props?: InitIndexWebpackPluginProps); init(): void; apply(compiler: webpack.Compiler): void; listenGlobalCss(): void; } export default InitIndexWebpackPlugin;