🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

nuxt3-purgecss

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt3-purgecss - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+1
-1
dist/module.json

@@ -7,3 +7,3 @@ {

},
"version": "1.0.0"
"version": "1.0.1"
}
{
"name": "nuxt3-purgecss",
"version": "1.0.0",
"version": "1.0.1",
"description": "Drop superfluous CSS! A neat PurgeCSS wrapper for Nuxt",

@@ -36,5 +36,5 @@ "keywords": [

"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
"lint": "eslint --ext .js,.ts,.vue --fix",
"lint": "eslint . -c eslint.config.js --fix",
"lint:all": "yarn lint .",
"release": "release-it",
"release": "nuxt-module-build && release-it",
"test": "yarn vitest run"

@@ -45,3 +45,2 @@ },

"@nuxt/kit": "^3.13.2",
"consola": "^3.2.3",
"glob-all": "^3.3.1",

@@ -48,0 +47,0 @@ "pathe": "^1.1.2",

# Nuxt PurgeCSS - Drop superfluous CSS!
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
[![Codecov][codecov-src]][codecov-href]
[![License][license-src]][license-href]
[![thanks](https://img.shields.io/badge/thanks-%E2%99%A5-ff69b4.svg)](https://thanks.lichter.io/)
[📖 **Release Notes**](./CHANGELOG.md)
## Features

@@ -18,3 +9,2 @@

* Nuxt 3 support
* Fully tested!

@@ -43,4 +33,2 @@ ## Setup

:warning: If you are using Nuxt **2**, please use version 1 of the module.
## Options

@@ -50,3 +38,3 @@

Before diving into the individual attributes, please have a look [at the default settings](https://github.com/Developmint/nuxt3-purgecss/blob/main/src/config.ts) of the module.
Before diving into the individual attributes, please have a look [at the default settings](https://github.com/luoxiangfan/nuxt-purgecss/blob/main/src/config.ts) of the module.

@@ -107,14 +95,2 @@ The defaults will scan all your `.vue`, `.js` and `.ts` files in the common Nuxt folders, as well as checking your `nuxt.config.js` (or `.ts`) for used classes.

## Migrating from v1.x
:warning: If you use Nuxt 2, you can't update to v2.x (yet?)
1. The webpack mode has been removed, as Nuxt 3 supports Vite and webpack. This way, the logic is unified to use the PostCSS plugin of PurgeCSS. There is no `mode` anymore
2. The config merging logic of v1 has been removed in favor of using [`defu`](https://github.com/unjs/defu). Instead of using functions, write your values as usual and they will be merged.
3. PurgeCSS has been bumped from v2.x to v5.x - Please check the current [config options](https://purgecss.com/configuration.html#options)
4. Change the module key has been changed to just `purgecss`.
5. In addition to `enabled`, all purgecss configurations can be written directly into the `purgecss` object.
6. Eventually, check out the playground of the module and the [current defaults]([at the default settings](https://github.com/Developmint/nuxt3-purgecss/blob/main/src/config.ts))!
## License

@@ -125,17 +101,1 @@

Copyright (c) Alexander Lichter
<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/nuxt3-purgecss/latest.svg
[npm-version-href]: https://npmjs.com/package/nuxt3-purgecss
[npm-downloads-src]: https://img.shields.io/npm/dt/nuxt3-purgecss.svg
[npm-downloads-href]: https://npmjs.com/package/nuxt3-purgecss
[github-actions-ci-src]: https://github.com/Developmint/nuxt3-purgecss/workflows/ci/badge.svg
[github-actions-ci-href]: https://github.com/Developmint/nuxt3-purgecss/actions?query=workflow%3Aci
[codecov-src]: https://img.shields.io/codecov/c/github/Developmint/nuxt3-purgecss.svg
[codecov-href]: https://codecov.io/gh/Developmint/nuxt3-purgecss
[license-src]: https://img.shields.io/npm/l/nuxt3-purgecss.svg
[license-href]: https://npmjs.com/package/nuxt3-purgecss