Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

WordPress Gutenberg Hot Module Replacement Example

An example plugin demonstrating how to use React's hot module replacement when developing a Gutenberg block. No more death by a thousand cuts reloads. Your command + R keys will thank you.

Install dependencies and run build script

  1. Define the WP_LOCAL_DEV constant in your development environment
  2. npm install: Install plugin dependencies via npm
  3. npm run dev: Development without hot module replacement, you'll need to reload the page after every change
  4. npm run hot: Development with hot module replacement
  5. npm run build: To build the block for use on a production server:

About

An example plugin demonstrating how to use React's hot module replacement while developing a Gutenberg block.

Topics

Resources

Releases

No releases published

Packages

No packages published