UNPKG

module-migration-tool

Version:

分析项目文件依赖并迁移到新项目的工具

49 lines (44 loc) 940 B
/** * 默认配置 */ module.exports = { // 文件扩展名 extensions: [ ".js", ".jsx", ".ts", ".tsx", ".vue", ".css", ".scss", ".less", ".json", ], // 忽略路径 ignorePaths: ["node_modules", "dist", "build", ".git"], // 别名配置 (用于解析别名路径,如 @ -> src) alias: { "@": "./src", "~": "./src", "@components": "./src/components", "@utils": "./src/utils", "@assets": "./src/assets", "@styles": "./src/styles", }, // 依赖分析选项 analysis: { // 是否分析CSS依赖 includeCss: true, // 是否分析JSON依赖 includeJson: true, // 是否分析图片依赖 includeImages: true, }, // 生成报告选项 report: { // 是否生成依赖报告 generateReport: false, // 报告输出路径 outputPath: "./dependency-report.html", }, }