diff --git a/pages/blog/posts/2020-12-08-roadmap-2021.md b/pages/blog/posts/2020-12-08-roadmap-2021.md index 1df4270..901c8da 100644 --- a/pages/blog/posts/2020-12-08-roadmap-2021.md +++ b/pages/blog/posts/2020-12-08-roadmap-2021.md @@ -1,8 +1,7 @@ --- layout: post date: 2020-12-08T00:00:00Z -authors: - - sokra +authors: sokra category: Roadmap image: /assets/blog/cover-2.svg description: A look ahead at the Webpack roadmap for 2021, focusing on ESM support, treating CSS and HTML as first-class citizens, and further stabilizing webpack 5. diff --git a/pages/blog/posts/2026-02-03-webpack-5-105.md b/pages/blog/posts/2026-02-03-webpack-5-105.md index 5e1c455..3ae80d1 100644 --- a/pages/blog/posts/2026-02-03-webpack-5-105.md +++ b/pages/blog/posts/2026-02-03-webpack-5-105.md @@ -1,8 +1,7 @@ --- layout: post date: 2026-02-03T00:00:00Z -authors: - - bjohansebas +authors: bjohansebas category: Release image: /assets/blog/cover-3.svg description: Webpack 5.105 brings CVE fixes, native tsconfig.json alias resolution without plugins, automatic module resolution for Web Workers, and cleaner ESM output. diff --git a/pages/blog/posts/2026-02-04-roadmap-2026.md b/pages/blog/posts/2026-02-04-roadmap-2026.md index 38d4c1b..77614a7 100644 --- a/pages/blog/posts/2026-02-04-roadmap-2026.md +++ b/pages/blog/posts/2026-02-04-roadmap-2026.md @@ -1,10 +1,7 @@ --- layout: post date: 2026-02-04T00:00:00Z -authors: - - evenstensberg - - bjohansebas - - UlisesGascon +authors: evenstensberg, bjohansebas, UlisesGascon category: Roadmap image: /assets/blog/cover-4.svg description: The Webpack 2026 Roadmap explores native CSS Modules support, a new universal target, lazy barrel optimization, and dropping the need for TypeScript loaders. diff --git a/pages/blog/posts/2026-04-08-webpack-5-106.md b/pages/blog/posts/2026-04-08-webpack-5-106.md index 1394a48..f2c6997 100644 --- a/pages/blog/posts/2026-04-08-webpack-5-106.md +++ b/pages/blog/posts/2026-04-08-webpack-5-106.md @@ -1,8 +1,7 @@ --- layout: post date: 2026-04-08T00:00:00Z -authors: - - bjohansebas +authors: bjohansebas category: Release image: /assets/blog/cover-1.svg description: Webpack 5.106 introduces plugin validation hooks, built-in runtime style injection for CSS Modules, smarter tree shaking for CommonJS, and experimental oxc-parser. diff --git a/pages/blog/posts/2026-05-19-webpack-5-107.md b/pages/blog/posts/2026-05-19-webpack-5-107.md index 847d03d..2c251b4 100644 --- a/pages/blog/posts/2026-05-19-webpack-5-107.md +++ b/pages/blog/posts/2026-05-19-webpack-5-107.md @@ -1,8 +1,7 @@ --- layout: post date: 2026-05-19T00:00:00Z -authors: - - bjohansebas +authors: bjohansebas category: Release image: /assets/blog/cover-2.svg description: Webpack 5.107 lands experimental HTML modules replacing html-loader, built-in TypeScript type stripping, and major improvements to the CSS pipeline. diff --git a/scripts/data/blog.mjs b/scripts/data/blog.mjs index 4884f57..1bc5e11 100644 --- a/scripts/data/blog.mjs +++ b/scripts/data/blog.mjs @@ -9,13 +9,6 @@ const ROOT = join(dirname(fileURLToPath(import.meta.url)), '..', '..'); const POSTS_DIR = join(ROOT, 'pages', 'blog', 'posts'); const OUTPUT = join(ROOT, 'generated', 'blog.json'); -const toAuthors = data => { - const value = data.authors ?? data.author; - if (Array.isArray(value)) return value.map(String); - if (value == null) return []; - return [String(value)]; -}; - const titleFromBody = body => body.match(/^#\s+(.+)$/m)?.[1].trim() ?? null; const readPosts = async () => { @@ -32,7 +25,7 @@ const readPosts = async () => { return { slug, title: titleFromBody(content) ?? slug, - authors: toAuthors(data), + authors: data.authors.split(',').map(s => s.trim()), date: new Date(data.date).toISOString(), category: data.category ?? null, image: data.image ?? null,