Closed lastobelus closed 6 years ago
What happens if you use double quotes inside of the src
attribute ? Like so:
<script src='{{ "match-media.min.js" | asset_url }}'></script>
The reason to use single quote around the src
attribute is so that we can use double quotes inside the liquid expression.
Duh! yes, it works and I feel chagrined.
The
assets/vendors
+ single-quote passthru mechanism, is not working for me with script tags:If I use:
I get:
And if I try to add in the relative path:
Webpack tries to compile it and I get:
Have I misunderstood something about how to set this up?
Also, I think passthru should also work with
{{ 'some_path' | asset_url | script_tag}}
.