question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

allow interacting with build manifest via hook

See original GitHub issue

Environment


  • Operating System: Darwin
  • Node Version: v16.16.0
  • Nuxt Version: 3.0.0-rc.6
  • Package Manager: npm@8.11.0
  • Builder: webpack
  • User Config: modules, speedkit, vite, webpack, build
  • Runtime Modules: ()
  • Build Modules: -

Reproduction

Define a hook call to render:resourcesLoaded in a module.

Describe the bug

The hook is not fired.

Additional context

I had a look and found out that this hook is defined in the scheme of Nuxt 3.

https://github.com/nuxt/framework/blob/8c2c80e43e80cd8f1c4246d7563214fa695a3e98/packages/schema/src/types/hooks.ts#L134

https://github.com/nuxt/framework/search?q=render%3AresourcesLoaded

But unfortunately there is no call.

Nuxt 2 equivalent: https://github.com/nuxt/nuxt.js/blob/b0147772ec98568b28ae80a7e97eca3381aa6a4e/packages/vue-renderer/src/renderer.js#L133

I hope this one is just missing at the moment 🙂

Logs

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
danielroecommented, Jul 25, 2022

I’m currently rethinking/reworking vue-bundle-renderer so will keep thinking about this.

Is this something you need to do on a per-request basis or could we do this at build/generate time? (Feels like the latter might be more performant.)

1reaction
ThornWallicommented, Jul 25, 2022

We provide in nuxt-speedkit the option to remove the assets in the client/modern manifest. Thus the loading of unnecessary chunks was reduced.

The goal was to keep the number of initial scripts small.

Real example:

Without:

image

With:

image

Now it would be interesting to know 🙂 If there is something similar with nuxt@3, or we don’t run into the problem anymore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

App Manifest Overview - Android Developers
If you're using Android Studio to build your app, the manifest file is created for ... For more information, see Allow Other Apps...
Read more >
docker manifest - Docker Documentation
The manifest command interacts solely with a Docker registry. Because of this, it has no way to query the engine for the list...
Read more >
Create and configure apps with manifests - Slack API
Use our app manifest system to create, configure, and clone Slack apps with ease. ... Manifests are written in YAML or JSON using...
Read more >
Use an Input Manifest File - Amazon SageMaker
Each line in an input manifest file is an entry containing an object, ... You must give Amazon SageMaker access to the data...
Read more >
Web Application Manifest - W3C
Additionally, the manifest allows a developer to "scope" a web application to a URL. This restricts the URLs to which the manifest is ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found