Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@kv/craco-config / src / types.ts
Size: Mime:
import type { Configuration } from 'webpack';

export type PackageConfig = {
  enableAstroturf: boolean;
  enableAntdTheme: boolean;
  antdThemeName: string;
};

export type CracoConfig = {
  eslint: {
    mode: string;
  };
  babel: {
    plugins: unknown[];
  };
  webpack: {
    configure: (webpackConfig: Configuration) => Configuration;
  };
};

export type BabelPluginImportOptions = {
  libraryName: string;
  libraryDirectory: string;
  camel2DashComponentName?: boolean;
  style?: boolean | string;
};

export type BabelPluginImportConfig = [
  'import',
  BabelPluginImportOptions,
  string,
];