Vaggelis Yfantis

Inline Assets

Vaggelis Yfantis

Latest Version Statamic 3.0+

Inline assets

Inline assets for Statamic

Installation

Require it using Composer.

composer require octoper/statamic-inline-assets

Inline Asset tag

Inline assets will inline your CSS or JS file to your HTML.

Inline assets can help you speed of your Statamic website by inlining critical CSS you can check more about that by reading this article Extract critical CSS

Templating

Pass a path to your file from the public directory to inline_assets tag.

<style>
{{ inline_assets:css src="css/site.css" }}
</style>

or


You can also minify your js or css assets.


Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.