-
Notifications
You must be signed in to change notification settings - Fork 363
Static Assets not Uploading #754
Comments
On testing it appears that |
My understanding is that |
Hey @qw-in -- what you are experiencing is intentional and the beauty of Slate v1! Static assets are hosted locally when developing (yarn start) so that changes are reflected without needing to wait for them to be uploaded to Shopify servers. See Local Development for more info. |
Thanks for the clarification @t-kelly. This may warrant a docs update see here
So what would you recommend in terms of migrating from legacy themes? When I saw the docs above I thought that would be a perfect starting point as all of the old assets could be moved to the We have a large number of rather complex themes and if I am understanding correctly we would have to update all of the assets like this (excluding
This is relatively easy but what I have not found a solution for is this case
I found the docs on adding double quotes here but when bypassing webpack the asset will then 404 at Unless I am missing something an |
@qw-in Im experiencing the same issue, assets from var are not uploaded. Have you find a workaround ? |
@adelh45 not a great one. Can run |
This is relatively easy but what I have not found a solution for is this case
You are correct that the Slate Liquid Asset Loader, in its current state, is limited to direct `{{ path | asset_url }} assignments. I'm going to be tackling assets next week, and this will be one of many (#409, #410, #501, #658) |
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
Static Assets are never uploaded in development mode
Replication steps
yarn create slate-theme foo
cd foo
yarn start
(wait for upload)./assets/static/test.css
body { background: red; }
{{ "test.css" | asset_url | stylesheet_tag }}
to./templates/index.liquid
Expected Result:
test.css
is uploadedindex.liquid
is uploadedObserved Result:
test.css
is not uploadedindex.liquid
is uploadedMore Information
yarn start
again will not upload the assetyarn start
. Had a bunch of legacy photos and stuff when I went checking fortest.css
The text was updated successfully, but these errors were encountered: