Skip to content

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

License

Notifications You must be signed in to change notification settings

saidsay-so/nuxt-buefy-purgecss

Repository files navigation

nuxt-buefy-purgecss

codecov .github/workflows/test.yml

A simple wrapper for nuxt-buefy, which adds support for PurgeCSS.

Install

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.

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

Options

Please see here.

Credits

Kudos to @phatj for the work!