When using the @wordpress/scripts package, it will automatically create a .deps.json file for every JavaScript entrypoint. This file contains a list of all the WordPress JavaScript dependencies used in it and in all the file it imports. Therefore it really simplifies keeping track all of the dependencies of a script. But the question that quickly […]
Continue readingCategory: WordPress
How to Use The @wordpress/scripts Build Tool with Custom WordPress Blocks
March 26, 2019
In our last article about how to build a basic block using registerBlockType with no webpack or JSX we covered how to setup a custom block without having to use a build system, jsx and modern javascript that needs to be converted in order to run in browsers that don’t support it jet. In this article […]
Continue readingGutenberg Block Tutorial with registerBlockType() and NO Webpack, ES6, JSX or Babel
February 22, 2019
Since the new Gutenberg block editor has been merged into core with the release of WordPress 5.0, the demand for creating your own blocks has increased greatly. In this short guide we’ll be getting you up and running creating your first block. Although build tools like webpack are commonly being used, in this tutorial we […]
Continue reading