UNPKG

react-scripts-intlayer

Version:

Integrate Intlayer with Create React App using custom React scripts for internationalization i18n and advanced Webpack configurations

29 lines 924 B
import type { CracoConfig, CracoConfigOverride, CracoPlugin, WebpackConfigOverride } from '@craco/types'; import type { Configuration as WebpackConfig } from 'webpack'; /** * Override the final CRA Webpack config. */ export declare const overrideWebpackConfig: ({ webpackConfig, }: WebpackConfigOverride) => WebpackConfig; /** * Override the CRACO config itself to set up aliases, fallbacks, and plugins. */ export declare const overrideCracoConfig: ({ cracoConfig, }: CracoConfigOverride) => CracoConfig; /** * A CRACO plugin that adds the Intlayer configuration to the webpack configuration and sets the environment variables. * * Usage: * * ```ts * const cracoConfig: CracoConfig = { * plugins: [ * { * plugin: intlayerCracoPlugin, * }, * ], * }; * * export default cracoConfig; * ``` */ export declare const intlayerCracoPlugin: CracoPlugin; //# sourceMappingURL=intlayerCracoPlugin.d.ts.map