module.exports = function(cfg) { // 静态资源直接复制 cfg.addPassthroughCopy("assets"); // scan.html 面向消费者,独立维护,直接复制不经模板 cfg.addPassthroughCopy("scan.html"); // features/ 已改为 .njk 模板,不再需要 passthrough return { dir: { input: ".", output: "dist", includes: "_includes", data: "_data", layouts: "_includes", }, // 同时支持 .html 和 .njk 作为模板格式 templateFormats: ["njk", "html", "md"], htmlTemplateEngine: "njk", markdownTemplateEngine: "njk", }; };