-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
I'm opening this issue in order to make an organized place for the idea described here.
The idea is divided into several phases:
1. HMR of native html
- Create a dev only entry point which will load all
.liquidfiles and pass them when ever they change as a string - Wrap each file with a start & end unique html comment
- When an hot update comes replace the HTML between the special comments
2. Manipulate .liquide files locally
- Add support for Shopify only tags such as (
schema,sectionetc... ) - probably will require some PRs to https://github.com/harttle/liquidjs-section-tags - Manipulate
{{ 'bundle.x.js' | asset_url | script_tags }}&{{ 'bundle.x.css' | asset_url | stylesheet_tags }}the same way it is handled in the CopyAssets task - Prefetch store data to provide it to local
.liquidrenders
In this screenshot, you can see that whenever I edit message.liquid it hot replaced in the DOM without page reload!
As you can see it has un-processed liquid tags (Phase 2)
mike-diff
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
