purgecss
autoprefixer
purgecss | autoprefixer | |
---|---|---|
51 | 31 | |
7,662 | 21,477 | |
0.3% | 0.3% | |
8.4 | 7.2 | |
about 1 month ago | 19 days ago | |
TypeScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
purgecss
-
Optimize CSS with SAT Solving
As a starting point, Tailwind used to use PurgeCSS [0] but I'm not sure what they use now.
[0] https://purgecss.com
-
How to load critical styles for a NextJs app
A similar question was already posted here but, I think looking at the raw html, we will be able to better determine the required css than what Purgecss does.
-
Frontend development roadmap
PurgeCss
-
How to speed up your web application
Webpack minifies JS and CSS files by default when we build them in production mode. But it does not remove useless styles or classes. For this, you can use libraries like https://purgecss.com/ Do not forget to check the dependency, connect only the functionality that you use.
-
Removing unused CSS in a Django template-based project
When I searched online I couldn't find an "industry standard" solution to this problem. What I ended up doing was using the popular tool PurgeCSS along with a quick Python script to generate the appropriate command. What the PurgeCSS tool does is search for all your HTML files, gather all the CSS classes used, and then "purge" all the unused ones from the CSS file. You just need to declare all the HTML files you have.
-
23 of the best Eleventy Themes (Starters) for 2023
Skeleventy gives you a rock-solid foundation to build fast and accessible static websites, with clean, understated design. Features include a minimal build pipeline with Laravel Mix, the Sass-powered utility class generator Gorko, Purge CSS, an HTML minifier, SEO-friendly page metadata, image lazy loading, responsive navigation, and an XML sitemap.
-
Reduce unused CSS / JS from a Django App
You could look into using PurgeCSS and its cli?
- Eliminating unused selectors from Sass
-
Workplaces for digital nomads: the frontend
Unable to get rid of unused styles. Importing components individually and setting styles in SASS can greatly simplify builds, but several common unused styles can't be deleted using PurgeCSS and analogues due to dynamic class names.
-
Does My Website Look Big in This? Six Tips to Lower your Page Weight
If you’re hand-crafting your CSS, using only the exact classes you need, you’ll still probably find that your CSS file size grows as your site does. But it doesn’t need to grow too much — you can remove unused classes with tools like Purge CSS .
autoprefixer
- Vendor prefixes still relevant?
-
How do you handle browser compatibility?
Do you use Autoprefixer? https://github.com/postcss/autoprefixer
-
23 of the best Eleventy Themes (Starters) for 2023
Simple, fast, and a little bit opinionated, Eleventy Plus Vite features Eleventy 2.0.0-canary, the new Eleventy 2.0 Dev Server with live reload, Vite 3.0 as Middleware in Eleventy Dev Server (using eleventy-plugin-vite), build output post-processing by Vite (with Rollup), CSS/Sass post-processing with PostCSS including Autoprefixer and cssnano, a custom CSS/Sass structure, basic fluid typography based on Utopia, dark mode support, an RSS feed, XML sitemap, and — to top it off — perfect scores on Lighthouse.
- Need help understanding something. I have tried googling it and nothing is coming up.
-
The Complete Guide for Setting Up React App from Scratch (feat. TypeScript)
w/ postcss-preset-env(v7.8.3): convert modern CSS into something most browsers can understand, determining the polyfills you need based on your targeted browsers or runtime environments. It takes the support data that comes from MDN and Can I Use and determine from a browserlist whether those transformations are needed. It also packs Autoprefixer within and shares the list with it, so prefixes are only applied when you're going to need them given your browser support list.
-
How do I deal with CSS for Safari?
As others have said, you need to normalize. Also, you may need something like autoprefixer if you're using styles that have different vendor prefixes. https://github.com/postcss/autoprefixer
-
How to refactor an entire app to use something else instead of gap?
Mmm maybe it's not gap then, maybe it's some other property. Maybe autoprefixer could help. Or polyfills, as other user suggested.
-
Browserslist: building modern web apps for diverse global audience
Of course, we have great tooling for that: Autoprefixer, PostCSS and Stylelint for CSS transformation, Babel and Webpack for JavaScript transpilation and bundling, ESLint for code analysis, and many others.
-
10 GitHub Repositories to Become a CSS Master
Bulma uses autoprefixer to make (most) Flexbox…
- 34 Ways To Save Time On Manual Cross Browser Testing
What are some alternatives?
vue-vite-starter-template - A single page app Vite starter template, created to easily bootstrap Vue.js 2 apps
postcss-preset-env - Convert modern CSS into something browsers understand
cssnano - A modular minifier, built on top of the PostCSS ecosystem.
rollup-plugin-postcss - Seamless integration between Rollup and PostCSS.
PostCSS - Transforming styles with JS plugins
browserslist - 🦔 Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-preset-env
esbuild-loader - Webpack loader for esbuild: Speed up your build ⚡️
twin.macro - 🦹♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.
snarkdown - :smirk_cat: A snarky 1kb Markdown parser written in JavaScript
Visual Studio Code - Visual Studio Code
purifycss - Remove unused CSS. Also works with single-page apps.
postcss-nested - PostCSS plugin to unwrap nested rules like how Sass does it.