composer require nanuc/js-snippets
Publish config (optionally):
php artisan vendor:publish --provider="Nanuc\JSSnippets\JSSnippetsServiceProvider" --tag=config
Scripts in the
You need to define the stack that the script tag will be pushed to (default:
By default this will only be run in the
production environment (you can change this in the config).
The component will minify its content and put it in a file in the view cache. It will also generate a key based on the content.