{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/b003bd2dc08d40f5aea0ebd2637fc8e8\" frameborder=\"0\" width=\"1670\" height=\"1252\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":1252,"width":1670,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":1252,"thumbnail_width":1670,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/b003bd2dc08d40f5aea0ebd2637fc8e8-2b771c7a44b0affd.gif","duration":225.066667,"title":"Wordpress - Running virtual vs Running local","description":"In this video, I explain the difference between Virtual and Local modes in our WordPress development environment. By running \"npm run virtual,\" we create a local server that simulates a WordPress environment without caching for JS and CSS, allowing for real-time updates. I also demonstrate how to generate files using \"npm run build,\" which creates a hashed version of our assets that we need to manage carefully. If you encounter broken files, remember to adjust the local variables accordingly. Please ensure to work primarily in virtual mode during development and switch to build mode only when deploying to the server."}