Comments (4)
purging if offloaded to purgecss as part of a production build. i dont have that documented on the site no, it's also not that reliable. if you're worried about overshipping props, consider the postcss-jit-props plugin which additively puts the props into your stylesheet when used, or only import the groups of props you want (colors, sizes, etc).
this partically issue #25 is about automating the bundle sizes tho, not about how to reduce bundle sizes in your own builds.
from open-props.
This also relates to my questions on Discord. It sounds like purging is not on the horizon, yah? I think docs on a recommended approach for crusty folks like myself that want to avoid importing absolutely everything would be great too.
One idea and maybe it's what you already have in mind...it would be interesting to have an entry point config file where you have every .js
def file commented out (or the other way around), and one can simply elect to use or not use whichever one is preferred.
For example, I'd like to try OP in an existing app but I'm on the fence. So, I configure it to only use the spacing custom properties with the goal to additively use more OP stuff if I like it.
from open-props.
@argyleink Don't know if this is what you're after, but I wrote a little script that checks the current size of the built props.<thing>.css
files in src
. It shows the current file size and also the brotli and gzip sizes. I imagine we could export to .json
for the docsite, but could also be useful if added to the release changelog.
Here is an example of the output
from open-props.
nice, that data as json would be great. i could tuck it into an npm script then use the data with vite to populate the sizes. i dont have any time to do it right now, but just having that script in package.json would be nice.
from open-props.
Related Issues (20)
- `clip-path` border shapes
- Need rotate and scale animation additions
- Add constructible stylesheet as an output format HOT 3
- [enhancement] Click color swatch to copy hex code to clipboard? HOT 11
- Animations Shake-Y on Safari not stacking with other animations HOT 1
- Add dialog animation styles to normalize
- Add social media brand colors pack HOT 6
- Consider offering a few turbulence props to the svg pack
- Add SDR/HDR neon color props HOT 1
- Add scalable font size import HOT 2
- Sizes Counters Wrong HOT 8
- normalize table hover colors HOT 7
- Add Spacing Props HOT 2
- width: fit-content for tables is hard to override or customize HOT 3
- Media query conflict at "only" breakpoints HOT 1
- beta grays in v1.* aren't on :host in the shadow export
- `<a>` negative margin in normalize HOT 1
- Ensure Shadows Do Not Switch to Dark When Normalize Is Not Used
- Request: Dark mode as opt-in HOT 2
- Normalize toggle white/dark mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-props.