@wordpress/scripts
A build system built for building custom WordPress blocks.
Introduction
Setup
Using Yarn Package Manager:
yarn add @wordpress/scripts
Package.json
{
"name": "some-block-name",
"main": "index.js",
"scripts": {
"start": "wp-scripts start",
"build": "wp-scripts build"
}
}Running it
To build for development with "watch" running:
yarn start
To build for production:
yarn build
Resources
Last updated
Was this helpful?