diff --git a/schematics/public2business/index.js b/schematics/public2business/index.js index b6cbcc08ce..c4c8614e67 100644 --- a/schematics/public2business/index.js +++ b/schematics/public2business/index.js @@ -72,7 +72,7 @@ function copyAndAdaptPublicModule(tree, moduleName) { function adaptFile(entry) { const autogenerated = '/** Autogenerated by public2business schematic. DO NOT CHANGE! */\n'; const content = entry.content.toString('utf8'); - if (entry.path.endsWith('.md') || entry.path.endsWith('.json')) { + if (['md', 'json', 'html'].some(e => entry.path.endsWith(`.${e}`))) { return content; } else if (entry.path.endsWith('.scss')) { diff --git a/schematics/public2business/index.ts b/schematics/public2business/index.ts index de60feb5b4..e8bda24bfd 100644 --- a/schematics/public2business/index.ts +++ b/schematics/public2business/index.ts @@ -46,7 +46,7 @@ function copyAndAdaptPublicModule(tree: Tree, moduleName: string) { function adaptFile(entry: Readonly) { const autogenerated = '/** Autogenerated by public2business schematic. DO NOT CHANGE! */\n'; const content = entry.content.toString('utf8'); - if (entry.path.endsWith('.md') || entry.path.endsWith('.json')) { + if (['md', 'json', 'html'].some(e => entry.path.endsWith(`.${e}`))) { return content; } else if (entry.path.endsWith('.scss')) { return `${autogenerated}$sbbBusiness: true;\n\n${content}`;