-
Notifications
You must be signed in to change notification settings - Fork 362
Webpack parsing liquid? Errors, (1.x) #408
Comments
Yes we are parsing liquid files for |
Did that. Still getting errors...
It looks like it thinks the asset should be living in the same directory as the liquid file that's calling it. |
Running into same thing trying to reference a svg from src/assets/svg/. With: <img src="{{ 'icon-amazon_payments.svg' | asset_img_url }}"> I get the error:
It does work, though, with: <img src="{{ '../assets/svg/icon-amazon_payments.svg' | asset_img_url }}"> |
As @weotch mentioned, files need to be referenced relatively. Webpack will take care of spitting out the correct URL for Shopify on build. e.g.
gets transformed into
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Webpack seems to be trying to parse my liquid files? I'm not sure if this is expected or not, if so I'd expect it to not have an issue with standard liquid syntax.
For instance, I have a
layout/password.liquid
file that's including a script withasset_url
<script src="{{ 'modernizr.custom.js' | asset_url }}"></script>
When I run
yarn build
, it fails and gives me this error...Not sure what's really going on here, if slate is doing something weird or if I am?
The text was updated successfully, but these errors were encountered: