in the tailwind.config.js we have content: ['./index.php', './app/**/*.php', './resources/**/*.{php,vue,js}'],
so tailwind will see my classes used in my render template render.php but bud will add them to app.css right? I need to only add them to the respective index.css, index.js and then be placed in public/
I would prefer to have all my blocks files in the one directory, but bud needs the assets to be in resources correct?
Like So:
app/blocks/example-block/block.json
app/blocks/example-block/example-block.php
app/blocks/example-block/example-block.css
app/blocks/example-block/example-block.js
Since no one had responded, please let me know if I havent explained my issue well enough. But i just want to exclude my block tailwind classes from being added to app.css and find away to keep all block files in one directory and use Bud.
So resources/blocks/example-block-a/ I now have tailwind.example-block-a.config.js and in resources/blocks/example-block-b/ i now have tailwind.example-block-b.config.js
This is working as intended but the block tailwind styles are being added to app.css. Im thinking I just need to define in the main tailwind.config.js content array ./app/**/*.php to exclude the folder app/Blocks, or I just move my Blocks folder completely outside of app directory.
The next issue is I would like to keep all files relating to a block in the one directory, but bud seems to require the CSS and JS be in resources, is there a way around this?
At the moment while testing I am just hard coding in bud.