Purgecss Alternatives

Similar projects and alternatives to purgecss

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better purgecss alternative or higher similarity.

Suggest an alternative to purgecss

purgecss reviews and mentions

Posts with mentions or reviews of purgecss. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-29.
  • Web development is not a get rich quick scheme
    1 project | reddit.com/r/webdev | 8 Jun 2022
    Here is an example of a tool that can be configured for pretty much any project, even if it’s plain CSS. https://purgecss.com It could also be included in a build step after transpiling bootstrap.
  • PurgeCSS & styled-components: Does It Work?
    17 projects | dev.to | 29 Apr 2022
    { resolve: `gatsby-plugin-purgecss`, options: { // set this to true for debugging purposes; see what was removed printRejected: false, // ignore the antd styles you want to completely keep ignore: [ 'node_modules/antd/lib/select', 'node_modules/antd/lib/checkbox', ], purgeCSSOptions: { content: [ path.join(process.cwd(), 'src/**/!(*.d).{ts,js,jsx,tsx}'), // antd doesn't mesh well w purgecss, so keep the files we use // by listing them as content files. // reference: https://purgecss.com/ant_design.html path.join( process.cwd(), 'node_modules/antd/lib/{tooltip,modal,radio}/**/*.{css,less}' ), // utility styles from ant, let's keep it path.join( process.cwd(), 'node_modules/antd/lib/style/**/*.{css,less}' ), ], extractors: [ { // on top of listing antd files as content, we need an extractor to work // with css/less to get the selectors extractor: (content) => content.match(/([[email protected]&:{}]+)(?= {)/g) || [], extensions: ['css', 'less'], }, ], }, }, }
    17 projects | dev.to | 29 Apr 2022
    Wait, we still have that selector with .child... what's going on here? As it turns out, PurgeCSS doesn't handle descendant selectors/combinators like these well, just like styled-components. If we go back to the quick note on PurgeCSS' comparison logic, this actually makes sense. PurgeCSS isn't yet smart enough to build up nested selectors; so even though the HTML does represent .parent .child in this case, the list of selectors are only the smallest possible, e.g.
  • Bootstrap 5 framework?
    2 projects | reddit.com/r/webdev | 28 Apr 2022
    Yeah, what /u/zaibuf didn't mention is that in addition to only including the modules you want, you have to use something like https://purgecss.com/ in your build, which will parse your HTML (or Blade, or Twig) files looking for classes, and remove all the CSS classes that are not used.
  • Purge unused CSS on a Flask app
    2 projects | reddit.com/r/flask | 14 Mar 2022
    So I have this flask app where I currently use flask-assets to create a few Bundles for my JS and CSS. I use bootstrap, I end up with a lot of unused CSS on my minimised bundle. I have been searching for a while and I don't see a way to use the famous purgecss with flask-assets. I was thinking on maybe switch my bundler to something node.js based like webpack, but almost have no experience with JS. Also, flask-assets hasn't been updated in two years. So maybe is time for a change.
  • PurgeCSS: Remove unused CSS code
    2 projects | dev.to | 7 Jan 2022
    PurgeCSS is very easy to get started with and includes thorough documentation. At the time of writing, PurgeCSS is loved by developers with 1.9m weekly downloads on npm and 6.5k GitHub stars.
    2 projects | dev.to | 7 Jan 2022
    Removing unnecessary code will make your website load faster because the browser will request and parse less code. In this tutorial, we’ll explore PurgeCSS, a tool for removing unused CSS code. With PurgeCSS as a part of our development workflow, we can easily remove unused CSS, resulting in smaller CSS files and improving our application overall. Let's get started!
  • Vanta.js - Animated website backgrounds in a few lines of code
    2 projects | reddit.com/r/webdev | 3 Jan 2022
    I meant including three, similar to https://purgecss.com/ but for js libraries
  • I said "we can make everything with css" in class
    1 project | reddit.com/r/ProgrammerHumor | 27 Dec 2021
    Though, you can use another dependency to purge your css. eg purgecss
  • Website optimization for SEO
    2 projects | reddit.com/r/webdev | 7 Dec 2021
    Need to optimized a website for SEO. I was looking at purgecss.com (purgecss.com/configuration.html#configuration-file) but that appears to using NPM.
  • Facing difficulty while Fixing the issues of Reducing unused CSS [Help Me]
    1 project | reddit.com/r/webdev | 3 Dec 2021
    You could try using PurgeCSS
  • Looking for suggestions/experiences using 'css cleanup' tools ala PurgeCSS...
    2 projects | reddit.com/r/css | 2 Sep 2021
    It should also be possible to use it for Sass files with for example Webpack. Look at the webpack solution proposed here, for example: https://github.com/FullHuman/purgecss/issues/163
  • How to create a Vue.js 2 / Bootstrap 4 project with Vite
    4 projects | dev.to | 25 Aug 2021
    Bootstrap contains a lot of classes, but since we usually use a small set of the framework a lot of unused styles will be included in our CSS file. Let's configure PurgeCSS so that unnecessary styles will be stripped out of the final build.
  • Clean CSS: How to Spring Clean your Project
    3 projects | dev.to | 12 Aug 2021
  • Rails application boilerplate for fast MVP development
    63 projects | dev.to | 6 Aug 2021
    purge.css to cleanup stylesheets


Basic purgecss repo stats
7 days ago

FullHuman/purgecss is an open source project licensed under MIT License which is an OSI approved license.

Developer Ecosystem Survey 2022
Take part in the Developer Ecosystem Survey 2022 by JetBrains and get a chance to win a Macbook, a Nvidia graphics card, or other prizes. We’ll create an infographic full of stats, and you’ll get personalized results so you can compare yourself with other developers.
Find remote TypeScript jobs at our new job board 99remotejobs.com. There is 1 new remote job listed recently.
Are you hiring? Post a new remote job listing for free.