An open API service indexing awesome lists of open source software.

https://github.com/saidsay-so/nuxt-buefy-purgecss

A simple wrapper for nuxt-buefy to add support for PurgeCSS.
https://github.com/saidsay-so/nuxt-buefy-purgecss

nuxt nuxt-buefy purgecss

Last synced: 3 months ago
JSON representation

A simple wrapper for nuxt-buefy to add support for PurgeCSS.

Awesome Lists containing this project

README

        

# nuxt-buefy-purgecss

[![codecov](https://codecov.io/gh/MusiKid/nuxt-buefy-purgecss/branch/main/graph/badge.svg?token=FB35JGG7FR)](https://codecov.io/gh/MusiKid/nuxt-buefy-purgecss)
[![.github/workflows/test.yml](https://github.com/MusiKid/nuxt-buefy-purgecss/actions/workflows/test.yml/badge.svg)](https://github.com/MusiKid/nuxt-buefy-purgecss/actions/workflows/test.yml)

A simple wrapper for [nuxt-buefy](https://github.com/buefy/nuxt-buefy),
which adds support for PurgeCSS.

## Install

```sh
npm install --save-dev nuxt-purgecss
npm install --save @musikid/nuxt-buefy-purgecss-loader
```

## Usage

For now, we have to set PurgeCSS to Webpack mode.

```js
{
buildModules: [
'@musikid/nuxt-buefy-purgecss-loader',
['nuxt-purgecss', {
mode: 'webpack'
}]
],
...
build: {
extractCSS: true,
...
}
}
```

## Options

Please see [here](https://github.com/buefy/nuxt-buefy#options).

## Credits

Kudos to @phatj for the work!