@db-ux/wc-core-components 4.5.4-mcp-server-migrate-tool-test-1-eb724df → 4.5.4-postcss-a42fe67
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/README.md +11 -9
- package/dist/custom-elements.json +201 -201
- package/dist/vscode.html-custom-data.json +20 -20
- package/dist/web-types.json +43 -43
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -42,14 +42,16 @@ import "@db-ux/core-components/build/styles/rollup.css";
|
|
|
42
42
|
|
|
43
43
|
</details>
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
### Vite 8
|
|
46
|
+
|
|
47
|
+
Starting with Vite 8, the default CSS minifier was changed to [LightningCSS](https://lightningcss.dev/), which provides buggy transformations for modern CSS features used by the DB UX Design System (e.g. `light-dark()` CSS function). To keep CSS output stable, configure `vite.config.ts` like this:
|
|
46
48
|
|
|
47
49
|
```ts
|
|
48
50
|
// vite.config.ts
|
|
49
51
|
export default defineConfig({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
build: {
|
|
53
|
+
cssMinify: "esbuild"
|
|
54
|
+
}
|
|
53
55
|
});
|
|
54
56
|
```
|
|
55
57
|
|
|
@@ -64,11 +66,11 @@ import { browserslistToTargets } from "lightningcss";
|
|
|
64
66
|
import browserslist from "browserslist";
|
|
65
67
|
|
|
66
68
|
export default defineConfig({
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
css: {
|
|
70
|
+
lightningcss: {
|
|
71
|
+
targets: browserslistToTargets(browserslist(">= 0.5%, last 2 major versions, Firefox ESR, not dead"))
|
|
72
|
+
}
|
|
73
|
+
}
|
|
72
74
|
});
|
|
73
75
|
```
|
|
74
76
|
|