Site blocks
Block registration plugin for a WordPress website
by Mark Howells-Mead · github.com/markhowellsmead/mhm-site-blocks · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/markhowellsmead/mhm-site-blocks/archive/refs/heads/main.zipReadme
WordPress Site Blocks
Description
This WordPress plugin is intended for use as a block registration plugin. By building and compiling blocks through this plugin, and not in the Theme, you can ensure that the blocks remain available if you choose to switch to another Theme.
Usage
- Install this as a plugin in your local WordPress installation.
- Run
npm installin the plugin root folder. You'll need to be using the versions of Node and NPM specified in theenginessection of package.json. - Run
npm startin the plugin root folder. Then add the blocks in the assets/src/blocks/ folder. Webpack will watech this folder for changes and build a single output file, which is enqueued in the block editor. - This plugin doesn't currently load, handle or compile any CSS. That belongs in the Theme.
Author
Mark Howells-Mead | www.permanenttourist.ch | Since 1st February 2022
License
Please respect the GPL v3 licence, which is available via http://www.gnu.org/licenses/gpl-3.0.html