react-cosmos
Version:
CLI for running React Cosmos inside webpack-powered apps
6 lines (5 loc) • 474 B
TypeScript
import webpack from 'webpack';
import { CosmosConfig } from '../../../config/shared';
export declare function getGlobalsPlugin({ publicUrl }: CosmosConfig, userWebpack: typeof webpack, devServerOn: boolean): webpack.DefinePlugin;
export declare function hasPlugin(plugins: void | webpack.WebpackPluginInstance[], pluginName: string): boolean | void;
export declare function isInstanceOfWebpackPlugin(plugin: webpack.WebpackPluginInstance, constructorName: string): boolean;