-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Live Reload when changing locals for posthtml-expressions #2317
Comments
Yes config files are read once and cached, they do get invalidated when they change. However this should probably be added in the future as many config files contain fields like |
But that still doesn't make live reloading possible, does it? |
It should reload if a config changes. |
It doesn't seem to work for me. I've made a seperate branch where I've put my locals back in |
This is still an issue as of May 23, 2018. Anybody have any idea how to fix this? |
My current solution is to just use this method: <ul class="flex">
<each loop="item in
[
{ name: 'facebook', link: '/' },
{ name: 'twitter', link: '/' },
{ name: 'pinterest', link: '/' },
{ name: 'envelope', link: '/' },
]">
<li class="w-32 h-32 m-8">
<a target="_blank" href="{{ item.link }}">
<include src="{{ `assets/icons/${item.name}.svg` }}"></include>
</a>
</li>
</each>
</ul> This way, the data is re-referenced every time I make a change. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. |
But the problem remains |
❔ Question
Is there a way to tell Parcel to reload the page while developing, when one changes the locals that
posthtml-expressions
uses?I tried putting parts of these locals into a js file and require them in my
.posthtmlrc
, but that doesn't do anything. Probably because these config files are only read once on startup.🔦 Context
I'd like to be able to preview changes in the data
posthtml-expressions
uses, while running the dev server. Right now I have to restart it every time.🌍 Your Environment
The text was updated successfully, but these errors were encountered: