# Minify
This component will minify inline js or css
<x-boilerplate::minify>
<script>
// ... script to minify
</script>
</x-boilerplate::minify>
Or
<x-boilerplate::minify type="css">
<style>
// ... style to minify
</style>
</x-boilerplate::minify>
# Attributes
Attributes that can be used with this component :
Option | Type | Default | Description |
---|---|---|---|
type | string | js | Specify the type to minify (js or css) |
# Laravel 6
@component('boilerplate::minify')
<script>
// ... your script
</script>
@endcomponent
Or
@component('boilerplate::minify', ['type' => 'css'])
<script>
// ... your script
</script>
@endcomponent