You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assets don't update with hmr when assets file is changed.It is happend with two backgorud ways.
Just use in sfc template with <img src="/public/a.svg" />.
Reson:It need analyze assets reference in vue file.But it not support on now.It may be stuff to do.
2.Use in sfc script with import a from './public/a.svg'
It is not work with hmr.
Reson: it not update component (has static props (like {a: './public/a.svg' }) ) with hmr reload is triggered.
Soultion:
-Maybe can unmount component and remount new component. May add hmr api.like vue-remount to reslove this.
-Maybe just full reload with page.
The text was updated successfully, but these errors were encountered:
Assets don't update with hmr when assets file is changed.It is happend with two backgorud ways.
<img src="/public/a.svg" />
.Reson:It need analyze assets reference in vue file.But it not support on now.It may be stuff to do.
2.Use in sfc script with
import a from './public/a.svg'
It is not work with hmr.
Reson: it not update component (has static props (like {a: './public/a.svg' }) ) with hmr reload is triggered.
Soultion:
-Maybe can unmount component and remount new component. May add hmr api.like
vue-remount
to reslove this.-Maybe just full reload with page.
The text was updated successfully, but these errors were encountered: