refactor: remove combined CSS file writing and optimize page-specific CSS handling in prerender logic

This commit is contained in:
sebseb7
2025-07-20 12:35:05 +02:00
parent 275ee3bea6
commit 8629dc5d87
2 changed files with 12 additions and 34 deletions

View File

@@ -103,7 +103,6 @@ const shopConfig = require("./src/config.js").default;
const { renderPage } = require("./prerender/renderer.cjs");
const {
collectAllCategories,
writeCombinedCssFile,
} = require("./prerender/utils.cjs");
const {
generateProductMetaTags,
@@ -642,8 +641,7 @@ const renderApp = async (categoryData, socket) => {
);
}
// Write the combined CSS file after all pages are rendered
writeCombinedCssFile(config.globalCssCollection, config.outputDir);
// No longer writing combined CSS file - each page has its own embedded CSS
// Generate XML sitemap with all rendered pages
console.log("\n🗺 Generating XML sitemap...");