Learn how to extend or add additional functionality to Nova.
nova:asset
Artisan command. By default, all new assets will be placed in the nova-components
directory of your application. When generating an asset using the nova:asset
command, the asset name you pass to the command should follow the Composer vendor/package
format:
composer.json
file. All custom assets are registered with your application as a Composer “path” repository.
Nova assets include all of the scaffolding necessary to build your asset. Each asset even contains its own composer.json
file and is ready to be shared with the world on GitHub or the source control provider of your choice.
webpack.mix.js
file, which is generated when Nova creates your custom asset. You may build your custom asset using the NPM dev
and prod
commands:
watch
command to auto-compile your assets when they are changed: