@frontity/core
Version:
The core package of the Frontity framework.
23 lines (22 loc) • 612 B
TypeScript
import { Target, WebpackConfig } from "@frontity/types/config";
/**
* The options of the {@link externals} function.
*/
interface NameOptions {
/**
* The target of the build: "server", "es5" or "module".
*/
target: Target;
}
/**
* Generate the object for Webpack's name configuration.
*
* It is important to use the names 'client' and 'server' for
* `webpack-hot-server-middleware`.
*
* @param options - Defined in {@link NameOptions}.
*
* @returns The configuration object for Webpack.
*/
declare const name: ({ target }: NameOptions) => WebpackConfig["name"];
export default name;