Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add line to have app.wpjson work without Tailwind #504

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

taylorgorman
Copy link
Contributor

Per the @roots/sage Bud extension documentation page I've linked, .enable() is necessary when .useTailwind*() are not present. I had to google around to find out why my theme.json stopped generating.

To test this, I

  1. Created a fresh roots/sage project
  2. Changed a value in app.wpjson.setSettings() in bud.config.js, ran yarn build and saw the change in theme.json
  3. Removed the three .useTailwind*() lines
  4. Changed a value in app.wpjson.setSettings(), yarn build, no change in theme.json
  5. Added .enable()
  6. Changed a value in app.wpjson.setSettings(), yarn build, did see change in theme.json

I added the last sentence with the Bud docs link for proof and help, but feel free to remove if you'd rather keep the page shorter and more focused.

Copy link
Member

@retlehs retlehs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@retlehs retlehs merged commit 77a22d2 into roots:docs Apr 24, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants