You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.
Using asset_url leads local dev asset path to include default shopify CDN because the dist file processed still contains a liquid variable that is then processed by the liquid engine.
The text was updated successfully, but these errors were encountered:
rg-najera
changed the title
1.x - Asset references using asset_url leads to wrong url in Local Dev
1.x - Asset references using asset_url leads to incorrect url in Local Dev
Mar 29, 2018
rg-najera
changed the title
1.x - Asset references using asset_url leads to incorrect url in Local Dev
1.x - (slate-tools 1.0.0-alpha.26) Asset references using asset_url leads to incorrect url in Local Dev
Mar 29, 2018
Problem
Using
asset_url
leads local dev asset path to include default shopify CDN because the dist file processed still contains a liquid variable that is then processed by the liquid engine.Replication steps
Using the following:
<img src="{{ '../assets/svg/hero_title.svg' | asset_url }}" class="lazyload js"/>
Result:
Instead of
More Information
I recommend striping the tag altogether and printing a local version for dev
<img src="'https://localhost:8080/hero_title.svg' " class="lazyload js"/>
Using slate-tools 1.0.0-alpha.26
Referenced in #407
The text was updated successfully, but these errors were encountered: