Skip to content

Commit fc87b28

Browse files
committed
update README.md
1 parent 7821edf commit fc87b28

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,23 @@ Pass a path to your file from the public directory to `inline_assets` tag.
2525

2626
```twig
2727
<style>
28-
{{ inline_assets src="css/site.css" }}
28+
{{ inline_assets:css src="css/site.css" }}
2929
</style>
3030
```
3131

3232
or
3333

3434
```twig
3535
<script>
36-
{{ inline_assets src="js/site.js" }}
36+
{{ inline_assets:js src="js/site.js" }}
37+
</script>
38+
```
39+
40+
You can also minify your js or css assets.
41+
42+
```twig
43+
<script>
44+
{{ inline_assets:js minify="true" src="js/site.js" }}
3745
</script>
3846
```
3947

0 commit comments

Comments
 (0)