Custom Gutenberg blocks for WordPress.
- WordPress 6.3+
- Node.js 18+
-
Install dependencies:
npm install
-
Build assets for production:
npm run build
-
Start development watcher:
npm start
- Add a new folder under
src/blocks/with ablock.jsonand block files. - Export the block from
src/index.js. - Run
npm run buildto generate assets inbuild/.
battiblocks.phpplugin bootstrapblocks.phpblock registrationsrc/block sourcesbuild/compiled assets