yarn
or
npm install
Set WP_DEBUG in wp-config.php to true
yarn run dev
or
npm run dev
Set WP_DEBUG in wp-config.php to true
Create proxyconfig.json
Set your eviroment vars i.E.
{
"target": "https://br-boilerplate.dev",
}
yarn run watch
or
npm run watch
Set WP_DEBUG in wp-config.php to false if you would like to check the Theme with production files
yarn run prod
or
npm run prod
Build a production version and then push the chaned dist folder to the master.
Load JS with
document.addEventListener("turbolinks:load", function() {
//The JS here
})