Minor Changes
-
36252b1: ## --minimal flag
Adds a new
--minimal
flag for the CLI on thepanda cssgen
command to skip generating CSS for theme tokens,
preflightkeyframes, static and global cssThich means that the generated CSS will only contain the CSS related to the styles found in the included files.
Note that you can use a
glob
to override theconfig.include
option like this:
panda cssgen "src/**/*.css" --minimal
This is useful when you want to split your CSS into multiple files, for example if you want to split by pages.
Use it like this:
panda cssgen "src/**/pages/*.css" --minimal --outfile dist/pages.css
cssgen {type}
In addition to the optional
glob
that you can already pass to override the config.include option, thepanda cssgen
command now accepts a new{type}
argument to generate only a specific type of CSS:- preflight
- tokens
- static
- global
- keyframes
Note that this only works when passing an
--outfile
.You can use it like this:
panda cssgen "static" --outfile dist/static.css
Patch Changes
- Updated dependencies [20f4e20]
- Updated dependencies [36252b1]
- @pandacss/node@0.16.0
- @pandacss/postcss@0.16.0
- @pandacss/studio@0.16.0
- @pandacss/config@0.16.0
- @pandacss/token-dictionary@0.16.0
- @pandacss/error@0.16.0
- @pandacss/logger@0.16.0
- @pandacss/preset-panda@0.16.0
- @pandacss/shared@0.16.0
- @pandacss/types@0.16.0