0.2.0 • Published 5 years ago

laravel-mix-wp-blocks v0.2.0

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

Laravel Mix WP Blocks

About

Laravel mix extension to transpile WordPress blocks.

npm install laravel-mix-wp-blocks --save-dev yarn add -D laravel-mix-wp-blocks

Usage

require("laravel-mix-wp-blocks")

mix.block('resources/assets/scripts/blocks.js', 'scripts')

Now you have access to all dependencies using @wordpress package import syntax. Example:

import { RichText } from '@wordpress/block-editor'

You will also find a json file accompanying each script (in your dist dir) containing all the @wordpress dependencies utilized by that script.

You can use that JSON file when enqueing your block in PHP to make sure your declared dependencies always match up with your actual usage.

0.2.0

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago