@uniweb/build 1.18.1 → 1.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/build",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.2",
|
|
4
4
|
"description": "Build tooling for the Uniweb Component Web Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
"js-yaml": "^4.3.2",
|
|
57
57
|
"sharp": "^0.35.5",
|
|
58
58
|
"yaml": "^2.5.0",
|
|
59
|
-
"@uniweb/schemas": "~1.6.11",
|
|
60
|
-
"@uniweb/theming": "~1.3.1",
|
|
61
59
|
"@uniweb/content-reader": "~1.5.9",
|
|
60
|
+
"@uniweb/theming": "~1.3.2",
|
|
61
|
+
"@uniweb/schemas": "~1.6.11",
|
|
62
|
+
"@uniweb/projections": "~1.2.13",
|
|
62
63
|
"@uniweb/content-writer": "~1.3.1",
|
|
63
|
-
"@uniweb/semantic-parser": "~1.13.2"
|
|
64
|
-
"@uniweb/projections": "~1.2.13"
|
|
64
|
+
"@uniweb/semantic-parser": "~1.13.2"
|
|
65
65
|
},
|
|
66
66
|
"optionalDependencies": {
|
|
67
|
-
"@uniweb/runtime": "~1.5.
|
|
67
|
+
"@uniweb/runtime": "~1.5.3"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"@tailwindcss/vite": "^4.0.0",
|
|
74
74
|
"@vitejs/plugin-react": "^4.0.0 || ^5.0.0",
|
|
75
75
|
"vite-plugin-svgr": "^4.0.0",
|
|
76
|
-
"@uniweb/core": "~1.6.
|
|
77
|
-
"@uniweb/runtime": "~1.5.
|
|
76
|
+
"@uniweb/core": "~1.6.8",
|
|
77
|
+
"@uniweb/runtime": "~1.5.3"
|
|
78
78
|
},
|
|
79
79
|
"peerDependenciesMeta": {
|
|
80
80
|
"vite": {
|
|
@@ -245,10 +245,19 @@ export function unreadFolders(stylesPath) {
|
|
|
245
245
|
}))
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
+
/**
|
|
249
|
+
* The one line that ends the problem, rather than a folder at a time: Tailwind then reads the whole
|
|
250
|
+
* foundation in a site build too, and `unreadFolders` has nothing to look for. The scaffold and the
|
|
251
|
+
* starter templates write it since 2026-11-06.
|
|
252
|
+
*/
|
|
253
|
+
export const READ_WHOLE_FOUNDATION = '@import "tailwindcss" source("./");'
|
|
254
|
+
|
|
248
255
|
/** What a site build and `uniweb dev` print when `unreadFolders` finds any: it is them that lose the classes. */
|
|
249
256
|
export function unreadFoldersWarning(unread) {
|
|
250
257
|
return [
|
|
251
|
-
"[uniweb] The foundation's styles.css names no @source for code that writes classes, so a site build and `uniweb dev` miss any class only that code uses, though the foundation's own build has it.
|
|
258
|
+
"[uniweb] The foundation's styles.css names no @source for code that writes classes, so a site build and `uniweb dev` miss any class only that code uses, though the foundation's own build has it. Have Tailwind read the whole foundation, and no folder can be left out:",
|
|
259
|
+
` ${READ_WHOLE_FOUNDATION}`,
|
|
260
|
+
' Or add:',
|
|
252
261
|
...unread.map(({ line }) => ` ${line}`)
|
|
253
262
|
].join('\n')
|
|
254
263
|
}
|