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
Created a fresh roots/sage project
Changed a value in app.wpjson.setSettings() in bud.config.js, ran yarn build and saw the change in theme.json
Removed the three .useTailwind*() lines
Changed a value in app.wpjson.setSettings(), yarn build, no change in theme.json
Added .enable()
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.
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 mytheme.json
stopped generating.To test this, I
app.wpjson.setSettings()
inbud.config.js
, ranyarn build
and saw the change intheme.json
.useTailwind*()
linesapp.wpjson.setSettings()
,yarn build
, no change intheme.json
.enable()
app.wpjson.setSettings()
,yarn build
, did see change intheme.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.