kss-modern 0.0.44 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node/lib/index.mjs +2 -2
- package/package.json +1 -1
package/dist/node/lib/index.mjs
CHANGED
|
@@ -2145,7 +2145,7 @@ async function buildStyleguide(config) {
|
|
|
2145
2145
|
const { content: parsedContent, overwrittenSectionsIds } = await parseStyleguide(config.contentDir);
|
|
2146
2146
|
if (config.mode === "production" && await fs.exists(config.outDir)) {
|
|
2147
2147
|
const files = await glob(`${config.outDir}/**/*.html`);
|
|
2148
|
-
await Promise.all(files.map((file) => fs.
|
|
2148
|
+
await Promise.all(files.map((file) => fs.remove(file)));
|
|
2149
2149
|
}
|
|
2150
2150
|
const baseDirectory = path.relative(process.cwd(), config.outDir);
|
|
2151
2151
|
const getFullPageFilePath = (fileName) => path.join(baseDirectory, fileName);
|
|
@@ -2193,8 +2193,8 @@ async function buildStyleguide(config) {
|
|
|
2193
2193
|
});
|
|
2194
2194
|
});
|
|
2195
2195
|
});
|
|
2196
|
-
resolveInsertMarkupInRepository(markupRepository, sectionsById);
|
|
2197
2196
|
markupRepository = await compilePugMarkup(config.mode, config.contentDir, markupRepository);
|
|
2197
|
+
resolveInsertMarkupInRepository(markupRepository, sectionsById);
|
|
2198
2198
|
parsedContent.forEach((firstLevelSection, indexFirstLevel) => {
|
|
2199
2199
|
searchSectionMapping[indexFirstLevel] = {
|
|
2200
2200
|
title: firstLevelSection.header,
|