basics / nuxt-booster

nuxt-booster will help you to improve the lighthouse performance score (100/100) of your website. 🚀
https://basics.github.io/nuxt-booster/
MIT License
599 stars 30 forks source link

Migrating from nuxt-speedkit to nuxt-booster #983

Closed Emili-HD closed 2 months ago

Emili-HD commented 2 months ago

I am trying to migrate from nuxt-speedkit to nuxt-booster. When I update the dependencies and try to start Nuxt, I get the following error:

Cannot restart nuxt: ENOENT: no such file or directory, open '/Applications/MAMP/htdocs/myapp-nuxt/node_modules/nuxt-booster/dist/media/video.mp4'

ThornWalli commented 2 months ago

Hello @Emili-HD,

you can look again 😉

Problem should be fixed.

liquidiert commented 2 months ago

@ThornWalli why have you added the .mp4 file anyway?

ThornWalli commented 2 months ago

@liquidiert Part of the check whether the device is in energy-saving mode.

You can ignore the check here https://basics.github.io/nuxt-booster/guide/options.html#detection

This is a small empty video that is only used to check whether the video container is autostarting or not.

Small side note, the video is not loaded via resource but is already linked in the entry as Base64 in the build.

liquidiert commented 2 months ago

Ah okay makes sense, thank you!

Emili-HD commented 2 months ago

Run like a charm! Thanks!