Bootstrap wpackio-scripts to your project

This guide covers in-depth how to get started or incorporate wpack.io tooling into your WordPress project. Install the build tool We have two way to get started with @wpackio/scripts . Bootstrap the files automatically Using this way is recommended. It will not override any of your files and will …

Read More

Use PHP API to consume assets

While @wpackio/scripts will generate the assets for you, you still need a way to actually wp_enqueue_script the assets and define dynamic publicPath to make them actually work. wpackio/enqueue is the PHP companion of @wpackio/scripts. It gives you all the APIs you will need to properly consu…

Read More

Start using development server

Now that we have all dependencies installed, it is time to start the development server. Remember that wpackio-scripts doesn’t provide any WordPress development server. You are free to use any local server, like wamp, mamp, vvv. Let’s start by editing our wpackio.server.js file. Edit wpackio.se…

Read More

Creating Production Distribution

Now that you know how to start development server, it’s time to create production build. In most of the cases it is a single command away. But if you want to create distributable .zip file for your WordPress theme or plugin, then we have you covered too. Create production assets From your termina…

Read More