-
Notifications
You must be signed in to change notification settings - Fork 364
Assets/images skipped on build or deploy #611
Comments
Any updates on this one? I migrated my 0.x template to 1.x but I can't add any new images now. |
FWIW I also was having trouble with this until I realized that it only uploads images from
So it didn't upload the images when I didn't have the image referenced in the theme yet anywhere, or if I used the old way with just the filename like this I'm not sure if this is a bug or a feature, but this is the functionality as I've mapped it out through trial and error. |
Any news on this? Same issue, using {{ '../assets/images/placeholder.png' | asset_url }} with asset in /src/assets/images/placeholder.png didn't work for me like it did for petema3. A url is generated by shopify, but no images found uploaded into shopify's theme/assets folder. |
@DPerkunas have you tried |
@xavianaxw Yeah I did. Maybe the issue is the fact that I'm deploying to a live site but here's the full scenario of what I noticed. While having yarn watch running. In That being said, as expected, if I include the images via CSS like for a background, it will work when I use So is this a slate limitation or a bug? If using CSS + deploy, it will upload. If using liquid + deploy, it won't. We don't search liquid files for asset usage? I'm re-reading the OP, and thinking my scenario is different from OP. |
@DPerkunas interesting discovery. The reason why If you try
I'll post again if I ever stumble upon that thing I read. |
Sounds like the general consensus is that people would like images copied over, regardless if they are referenced in liquid or not? I don't see any harm in doing that? |
@t-kelly That would solve my problems |
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. |
Problem
Images placed into
/src/assets/images
are not copied into/dist/assets
on build or deploy.Replication steps
/src/assets/images
yarn build
oryarn deploy
/dist/assets
but nothing is copied overMore Information
It looks like there is a missing paths item in
slate-tools.config.js
forimages
that is referenced incore.js
. I tried locally fix it hoping it was a simple fix, but I think the issue is bigger than just a path reference.slate/packages/slate-tools/slate-tools.config.js
Lines 73 to 99 in d67f445
slate/packages/slate-tools/tools/webpack/config/core.js
Lines 47 to 54 in d67f445
The text was updated successfully, but these errors were encountered: