Skip to main content

Adding WordPress support

Installing bud.js dependencies

To get started with WordPress, install the @roots/bud-preset-wordpress preset along with a compatible compiler:

We recommend using @roots/bud-swc:

npm install @roots/bud-preset-wordpress @roots/bud-swc --save-dev

Included extensions

The @roots/bud-preset-wordpress preset includes the following extensions:

  • @roots/bud-react
  • @roots/bud-wordpress-dependencies
  • @roots/bud-wordpress-externals
  • @roots/bud-wordpress-theme-json
  • @roots/wordpress-hmr

Configuration

For more information on configuring WordPress, see the @roots/bud-preset-wordpress documentation.