How to create block with @wordpress/create-block
package:
- Create new block:
npx @wordpress/create-block
- Build the code for production:
npm run build
- Further reads: Creating block
This plugin is based on below documentation:
- Introducing Attributes and Editable Fields
- Block Controls: Block Toolbar and Settings Sidebar
- Block Supports
- Creating dynamic blocks
- Block Supports in dynamic blocks
Other reference:
Install the source codes:
npm install