Skip to content
Discussion options

You must be logged in to vote

Hi Jon 👋.

You should place the images inside shopify/assets/ directory. There is no need to process them through webpack. Add the static keyword to their file name e.g. file-name.static.png. That way they won't be cleaned by webpack during builds and git will track them.

To include them in a .liquid file use:

<img src="{{ 'file-name.static.png' | asset_url }}">

<!-- or -->

<img src="{{ 'file-name.static.png' | asset_img_url: '300x' }}">

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@ScottJr
Comment options

@sergejcodes
Comment options

@CaseJnr
Comment options

@sergejcodes
Comment options

@CaseJnr
Comment options

Answer selected by skyriverbend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants