@plugin-light/project-config-pixui
Version:
开箱即用的项目配置,适用于 pixui 项目
39 lines (38 loc) • 986 B
TypeScript
import type { ICrossGameStyleOptions } from '@plugin-light/shared';
export type IOptions = {
/**
* apps.json 和 appsettings.json 文件所在目录
*/
appSettingDir: string;
/**
* tsx 相关 loader 排除路径
*/
tsxLoaderExclude?: RegExp;
/**
* 启动端口
*/
port?: number;
/**
* 是否使用 tailwindcss
*/
useTailwind?: boolean;
/**
* cross-game-style Loader 参数
*/
crossGameStyleOptions?: ICrossGameStyleOptions;
/**
* 是否使用 ifdef-loader,或 ifdef-loader 参数
*/
ifdefOptions?: boolean | Record<string, any> | ((v: Record<string, any>) => Record<string, any>);
/**
* ifdef-loader 要处理的文件
* @default "/(press-|src|component|@tencent\/pmd-).*(\.vue|\.ts|\.js|\.css|\.scss)$/"
*/
handleIfDefFiles?: Array<string>;
};
export type AppDef = {
name: string;
template?: string;
entry?: string;
output?: string;
};