marcolg's avatar

Nova custom components require nova and nova-devtool

Hi, when creating a new custom component (any type) using, for example, php artisan nova:card, in the component's composer.json require-dev section the following packages are added automatically: "laravel/nova": "^5.0", "laravel/nova-devtool": "^1.7"

In the package.json, there is this dev-dependency: "laravel-nova-devtool": "file:vendor/laravel/nova-devtool"

According to Nova documentation ("Digging Deeper -> CSS / Javascript -> Using Nova Mixins"), this devtool package should be installed in the root project's vendor directory, and not inside each custom component. Is the documentation wrong or a bug in the artisan nova:card command?

I'm deploying the project using Vapor with a docker build, and the fact that each custom component includes its own copy of laravel framework + nova + devtool makes the Vapor build process incredibly slow.

I've manually removed all the dependencies from each custom component so that they import that module from the root project's vendor folder, however i was wondering if this is how it is supposed to work or not.

Thanks!

0 likes
0 replies

Please or to participate in this conversation.