GithubHelp home page GithubHelp logo

Comments (4)

argyleink avatar argyleink commented on August 15, 2024 1

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.

roblevintennis avatar roblevintennis commented on August 15, 2024

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.

bjorntheart avatar bjorntheart commented on August 15, 2024

@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
Screenshot 2024-02-17 at 20 38 27

from open-props.

argyleink avatar argyleink commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.