From 92b427ce81c1c2c432295a2598263ca485886020 Mon Sep 17 00:00:00 2001 From: Domenik Reitzner <30938967+dreitzner@users.noreply.github.com> Date: Tue, 8 Oct 2024 15:27:24 +0200 Subject: [PATCH] docs: ensure manifest code snippet works with pnpm (#29273) --- docs/1.getting-started/4.styling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/1.getting-started/4.styling.md b/docs/1.getting-started/4.styling.md index 383bed144b..d780ad3449 100644 --- a/docs/1.getting-started/4.styling.md +++ b/docs/1.getting-started/4.styling.md @@ -530,7 +530,7 @@ export default defineNuxtConfig({ hooks: { 'build:manifest': (manifest) => { // find the app entry, css list - const css = manifest['node_modules/nuxt/dist/app/entry.js']?.css + const css = Object.values(manifest).find(options => options.isEntry)?.css if (css) { // start from the end of the array and go to the beginning for (let i = css.length - 1; i >= 0; i--) {