Gathering detailed insights and metrics for nuxt-purgecss
Gathering detailed insights and metrics for nuxt-purgecss
Gathering detailed insights and metrics for nuxt-purgecss
Gathering detailed insights and metrics for nuxt-purgecss
nuxt3-purgecss
Drop superfluous CSS! A neat PurgeCSS wrapper for Nuxt
@musikid/nuxt-buefy-purgecss-loader
[](https://codecov.io/gh/MusiKid/nuxt-buefy-purgecss) [
JavaScript (17.99%)
Vue (7.96%)
CSS (2.29%)
Shell (1.28%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
490 Stars
91 Commits
20 Forks
4 Watchers
15 Branches
12 Contributors
Updated on Jul 16, 2025
Latest Version
2.0.0
Package Id
nuxt-purgecss@2.0.0
Unpacked Size
12.95 kB
Size
5.23 kB
File Count
8
NPM Version
8.19.2
Node Version
16.14.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
nuxt-purgecss
dependency to your project1yarn add --dev nuxt-purgecss # or npm install --save-dev nuxt-purgecss
nuxt-purgecss
to the modules
section of nuxt.config.{js,ts}
1export default { 2 modules: [ 3 // Simple usage 4 'nuxt-purgecss', 5 6 // With options 7 ['nuxt-purgecss', { /* module options */ }], 8 ] 9}
:warning: If you are using Nuxt 2, please use version 1 of the module.
Before diving into the individual attributes, please have a look at the default settings of the module.
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.
Furthermore, typical classes (like these needed for transitions, the nuxt link ones or those set when using scoped styles) are whitelisted already.
These settings should be a good foundation for a variety of projects.
Boolean
!nuxt.options.dev
(Disabled during nuxt dev
, enabled otherwise)Enables the module when set to true
.
Please read the PurgeCSS docs for information about PurgeCSS-related information.
1// nuxt.config.js 2export default { 3 modules: [ 4 'nuxt-purgecss', 5 ] 6}
1//nuxt.config.js 2export default { 3 modules: [ 4 'nuxt-purgecss', 5 ], 6 7 purgecss: { 8 enabled: true, // Always enable purgecss 9 safelist: ['my-class'], // Add my-class token to the safelist (e.g. .my-class) 10 } 11}
>>>
or ::v-deep
syntax. Instead, go for :deep
:warning: If you use Nuxt 2, you can't update to v2.x (yet?)
mode
anymoredefu
. Instead of using functions, write your values as usual and they will be merged.purgecss
.enabled
, all purgecss configurations can be written directly into the purgecss
object.Copyright (c) Alexander Lichter
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/25 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
55 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More