@codelet/cli-service
Version:
cli-service
21 lines (20 loc) • 661 B
TypeScript
import type { Configuration } from 'webpack';
export interface Config {
/** 开发路径默认 src */
entryPath?: string;
/** 入口文件 */
source?: string[];
/** 不参与打包、运行时 require 的外部脚本 */
externalSource?: string[];
/** 微信构建后的 npm 目录,会原样复制到 dist,并按裸模块外部引入 */
npmDir?: string;
/** 第一页 */
pageIndex?: string;
/** 静态文件 */
publicDir?: string;
/** webpack 配置 */
webpack?: Configuration;
}
export declare function getDefaultConfig(options?: Omit<Config, 'webpack'> & {
isDev?: boolean;
}): Required<Config>;