nystudio107 / craft-vite

Allows the use of the Vite.js next generation frontend tooling with Craft CMS
MIT License
52 stars 16 forks source link

Make errorEntry work for dd (die and dump) #42

Closed plumduffer closed 2 years ago

plumduffer commented 2 years ago

Is your feature request related to a problem? Please describe.

Have to manually refresh after dying a variable to my template.

Describe the solution you would like

Have the plugin automatically inject the errorEntry into the dd screen as to refresh automatically after more changes.

Describe alternatives you have considered

I thought maybe the vite-plugin-restart or other similar ones might have this option, but it doesn't seem so.

Additional context

Nothing else to add. Thanks for all the awesome work you do!

khalwat commented 2 years ago

So it should already support this via the errorEntry config setting: https://nystudio107.com/docs/vite/#the-config-php-file

khalwat commented 2 years ago

Potentially releated to: https://github.com/nystudio107/craft-vite/issues/44