Skip to content

Commit

Permalink
Merge branch 'master' into fix/content-glob
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianGonz97 committed Apr 8, 2024
2 parents 97f70a1 + d66aea0 commit cc15286
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
*.log
*.log
.DS_Store
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# vite-plugin-tailwind-purgecss

## 0.2.1

### Patch Changes

- c4aeb76: chore: Upgraded to `purgecss` v6
- c4aeb76: fix: Adjusted html content glob to account for Windows

## 0.2.0

### Minor Changes

- fc84d65: feat: Added support for Vite 5

## 0.1.4

### Patch Changes
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
[![npm version](https://img.shields.io/npm/v/vite-plugin-tailwind-purgecss?logo=npm&color=cb3837)](https://www.npmjs.com/package/vite-plugin-tailwind-purgecss)
[![license](https://img.shields.io/badge/license-MIT-%23bada55)](https://github.com/AdrianGonz97/vite-plugin-tailwind-purgecss/blob/main/LICENSE)

A simple vite plugin that **thoroughly** purges excess CSS using [PurgeCSS](https://purgecss.com/). This package should be used in combination with [Tailwind](https://tailwindcss.com/) and a Tailwind UI component library such as [Skeleton](https://skeleton.dev) or [Flowbite](https://flowbite.com/).

## ⚠ Notice ⚠
> [!IMPORTANT]
> This plugin will no longer be necessary after the release of [Tailwind v4](https://tailwindcss.com/blog/tailwindcss-v4-alpha) as they will introduce a new [Vite plugin](https://tailwindcss.com/blog/tailwindcss-v4-alpha#zero-configuration-content-detection) that will detect and generate the classes based on the module graph! As such, this plugin will only support Tailwind v3.
This package is still very **experimental**. Breaking changes can occur at any time. We'll stabilize once we hit a `1.0.0` release.
A simple vite plugin that **thoroughly** purges excess CSS using [PurgeCSS](https://purgecss.com/). This package should be used in combination with [Tailwind](https://tailwindcss.com/) and a Tailwind UI component library such as [Skeleton](https://skeleton.dev) or [Flowbite](https://flowbite.com/).

## Motivation

Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "vite-plugin-tailwind-purgecss",
"version": "0.1.4",
"version": "0.2.1",
"description": "Vite plugin for PurgeCSS",
"module": "dist/index.js",
"module": "dist/index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"type": "module",
"repository": {
"url": "https://github.com/AdrianGonz97/vite-plugin-tailwind-purgecss",
"type": "git"
Expand All @@ -14,6 +16,8 @@
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"scripts": {
Expand Down Expand Up @@ -55,6 +59,7 @@
"tsup": "^6.5.0",
"typescript": "^4.9.4",
"vite": "^5.0.0"
"vite": "^5.0.0"
},
"files": [
"dist"
Expand Down
92 changes: 92 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cc15286

Please sign in to comment.