mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: ensure manifest code snippet works with pnpm (#29273)
This commit is contained in:
parent
cb6cd82b8c
commit
92b427ce81
@ -530,7 +530,7 @@ export default defineNuxtConfig({
|
|||||||
hooks: {
|
hooks: {
|
||||||
'build:manifest': (manifest) => {
|
'build:manifest': (manifest) => {
|
||||||
// find the app entry, css list
|
// 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) {
|
if (css) {
|
||||||
// start from the end of the array and go to the beginning
|
// start from the end of the array and go to the beginning
|
||||||
for (let i = css.length - 1; i >= 0; i--) {
|
for (let i = css.length - 1; i >= 0; i--) {
|
||||||
|
Loading…
Reference in New Issue
Block a user