-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbud.config.js
More file actions
41 lines (39 loc) · 910 Bytes
/
Copy pathbud.config.js
File metadata and controls
41 lines (39 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* Bud-shaped entry and theme.json spec.
* Sage 11 compiles with Vite (`vite.config.js`, `npm run build`). Keep this
* file in sync with `wordpressThemeJson()` and the root `theme.json` source.
*
* @typedef {import('@roots/bud').Bud} Bud
*
* @param {Bud} app
*/
export default async (app) => {
app
/**
* Application entrypoints
*/
.entry('app', ['@scripts/app', '@styles/app'])
.entry('editor', ['@scripts/editor', '@styles/editor'])
/**
* Handle Asset Copying
*/
.assets(['images'])
/**
* Bridge Tailwind System Variables directly to WordPress theme.json
*/
.wpjson
.enable()
.useTailwindColors()
.useTailwindFontSizes()
.settings({
color: {
custom: false,
link: true,
},
spacing: {
blockGap: true,
units: ['px', 'em', 'rem', 'vh', 'vw'],
},
})
.setup()
}