• Hi,

    I am trying to setup HMR for gutenberg blocks that I am planing to modify and update. I would like to have HMR because it so much more seamless development than having the page restart every time. It saves so much time. But unfortunately information about it a bit scarse. I have attempted to do something with vite js (https://github.com/asolopovas/lyn-blocks) vite branch to see if I can get everthing setup but currently due to lack of examples on how to set this up I am unable to achieve it yet. As to @wordpress/script the have –hot flag that enable hmr in webpack config but there is know documentation on how to combine it with @wordpress/env. Could someone please help me out with this?

    Thanking you in advance.

    • This topic was modified 2 years, 6 months ago by asandco.
    • This topic was modified 2 years, 6 months ago by asandco.
    • This topic was modified 2 years, 6 months ago by asandco.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Does anyone know how to setup HMR for @wordpress/scripts + @wordpress/env?’ is closed to new replies.