Skip to content

barryceelen/wp-gutenberg-hot-module-replacement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •