I’m running Bud 6.23.2 trying to integrate it with Blocksy child theme. here is the configuration
/** @param {import('@roots/bud').Bud} bud */
export default async (bud) => {
// bud.runtime( false );
bud.externals({
$: 'window.jquery',
jQuery: 'window.jquery',
React: 'window.react',
});
await bud.make('theme-mfs', async theme => {
theme
.use('@roots/bud-tailwindcss')
.setPath( '@dist', 'wp-content/themes/blocksy-child/dist' )
.setPath( '@src', 'wp-content/themes/blocksy-child/resources/assets' )
.setPath( '@views', 'wp-content/themes/blocksy-child/resources/views' )
.entry( 'myfirstskool', [ '@src/assets/styles/main.scss', '@src/assets/scripts/main.js'] )
.tailwind.setConfig({
content: [
theme.path(`@src/**/*.js`),
theme.path(`@views/**/*.{php,html}`)],
theme: {},
plugins: [],
})
});
bud
.watch([
'wp-content/themes/blocksy-child/resources/assets/**/*',
'wp-content/themes/blocksy-child/resources/views/**/*',
])
proxy('https://myclient.test')
serve('http://10.0.0.1:2000');
}
but when I run yarn build
i for this error
BudError
✘ problem running config.after callback: Plugin tailwindcss does not exist
ℹ Stack trace
at ./node_modules/ink/build/components/Static.js:24:16
at Array.map (<anonymous>)
at Static (./node_modules/ink/build/components/Static.js:23:36)
at renderWithHooks (./node_modules/react-reconciler/cjs/react-reconciler.development.js:6659:18)
at mountIndeterminateComponent
(./node_modules/react-reconciler/cjs/react-reconciler.development.js:11276:13)
at beginWork (./node_modules/react-reconciler/cjs/react-reconciler.development.js:12799:16)
at beginWork$1 (./node_modules/react-reconciler/cjs/react-reconciler.development.js:19608:14)
at performUnitOfWork (./node_modules/react-reconciler/cjs/react-reconciler.development.js:18742:12)
here’s the dependencies
"devDependencies": {
"@roots/bud": "^6.23.2",
"@roots/bud-postcss": "^6.23.2",
"@roots/bud-sass": "^6.23.1",
"@roots/bud-tailwindcss": "^6.23.2"
},
"dependencies": {
"js-cookie": "^3.0.5",
"tailwindcss": "^3.4.10"
}