diff --git a/docs/how-to-guides/block-tutorial/applying-styles-with-stylesheets.md b/docs/how-to-guides/block-tutorial/applying-styles-with-stylesheets.md index 800f7dddd57f6..815adfdf80c26 100644 --- a/docs/how-to-guides/block-tutorial/applying-styles-with-stylesheets.md +++ b/docs/how-to-guides/block-tutorial/applying-styles-with-stylesheets.md @@ -160,6 +160,37 @@ registerBlockType( 'gutenberg-examples/example-02-stylesheets', { {% end %} +### Build or add dependency + +In order to include the blockEditor as a dependancy, make sure to run the build step, or update the asset php file. + +{% codetabs %} +{% JSX %} + +Build the scripts and update the asset file which is used to keep track of dependencies and the build version. +```bash +npm run build +``` + +{% Plain %} + +Edit the asset file to include the block-editor dependancy for the scripts. + +```php + + array( + 'wp-blocks', + 'wp-element', + 'wp-block-editor', + 'wp-polyfill' + ), + 'version' => '0.1' + ); +``` + +{% end %} + ### Enqueue stylesheets Like scripts, you can enqueue your block's styles using the `block.json` file.