AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
사용되지 않는 CSS를 제거합니다
Remove unused CSS
개발 도구TypeScript · CSSGitHub @FullHuman직접 설치운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
설치형 프로젝트는 배포 도메인 없이도 확인할 수 있습니다. 개인 저장소는 GitHub 로그인으로, 조직 저장소는 위의 저장소 확인 파일로 직접 확인해 주세요.
메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗When you are building a website, chances are that you are using a css framework like Bootstrap, Materializecss, Foundation, etc... But you will only use a small set of the framework and a lot of unused css styles will be included.
This is where PurgeCSS comes into play. PurgeCSS analyzes your content and your css files. Then it matches the selectors used in your css files with the ones in your content files. It removes unused selectors from your css, resulting in smaller css files.
You can try PurgeCSS online at purgecss.full-human.com.
You can find the PurgeCSS documentation on this website.
npm install purgecss --save-dev
import { PurgeCSS } from "purgecss";
const purgeCSSResults = await new PurgeCSS().purge({
content: ["**/*.html"],
css: ["**/*.css"],
});
This repository is a monorepo that we manage using pnpm workspaces and Changesets. That means that we actually publish several packages to npm from the same codebase, including:
| Package | Version | Description |
|---|---|---|
| purgecss | The core of PurgeCSS | |
| postcss-purgecss | PostCSS plugin for PurgeCSS | |
| purgecss-webpack-plugin | Webpack plugin for PurgeCSS | |
| gulp-purgecss | Gulp plugin for PurgeCSS | |
| grunt-purgecss | Grunt plugin for PurgeCSS | |
| rollup-plugin-purgecss | Rollup plugin for PurgeCSS | |
| purgecss-from-html | Html extractor for PurgeCSS | |
| purgecss-from-pug | Pug extractor for PurgeCSS | |
| purgecss-with-wordpress | Collection of safelist items for WordPress | |
| vue-cli-plugin-purgecss | Vue CLI Plugin for PurgeCSS |