mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-15 02:14:44 +00:00
docs: ensure manifest code snippet works with pnpm (#29273)
This commit is contained in:
parent
280e5923ea
commit
243a481d8a
@ -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--) {
|
||||
|
Loading…
Reference in New Issue
Block a user