Download the PHP package backfron/laravel-inline-assets without Composer
On this page you can find all versions of the php package backfron/laravel-inline-assets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download backfron/laravel-inline-assets
More information about backfron/laravel-inline-assets
Files in backfron/laravel-inline-assets
Package laravel-inline-assets
Short Description Render your javascript and css files inline for better performance in production.
License MIT
Homepage https://github.com/backfron/laravel-inline-assets
Informations about the package laravel-inline-assets
LaravelInlineAssets
backfron/laravel-finder
allows you to render your JS and CSS assets inline with the rest of your HTML in production environments. This can improve the load speed of your website reducing the http requests. In fact, I wrote these package in order to improve the results of my webpages in Google PageSpeed Insights.
Installation
Via Composer
Usage
Simply replace the use of and helpers in your blade files for the directives that this package provides.
And if you are using the helper:
The package will automatically creates a link or script tag if you are in non production environment (like local, devlopment, etc.). If you are in production the package gets the file contents and render it inside inline with the HTML using the appropiate tag ( or ).
If you want to customize the environments in which the asssets should be rendered inline, just publish the config file.
Next, add the environments that you want inside the inline key.
Change log
Please see the changelog for more information on what has changed recently.
Testing
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
- Jairo Ushiña
- All Contributors
License
Please see the license file for more information.