Usage with Bedrock
Update versions to the latest plugin versions
Add the following in your composer.json file:
"repositories": [
...
{
"type": "package",
"package": {
"name": "wpperformance/presswind-helpers",
"version": "1.0.1",
"type": "wordpress-plugin",
"source": {
"url": "https://github.com/wpperformance/presswind-helpers.git",
"type": "git",
"reference": "1.0.1"
}
}
}
],
Then add the require packages in your composer.json file:
"require": {
...
"wpperformance/presswind-helpers": "^1.0"
},
And run composer update
Update in the theme
In the vite.config.js file, in the line 16 and 17 :
? `/app/themes/${getThemeDir()}/`
: `/app/themes/${getThemeDir()}/dist/`,
In the /admin/vite.config.js file, in the line 24 and 25 :
? `/app/themes/${getThemeDir()}/`
: `/app/themes/${getThemeDir()}/admin/dist/`,
In postcss.config.js file, in the line 12 :
url.replace('/assets', `/app/themes/${getThemeDir()}/assets`),