Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[astro-purgecss] Allow passing options to customize PurgeCSS #31

Closed
mhdcodes opened this issue Sep 8, 2022 · 0 comments · Fixed by #33
Closed

[astro-purgecss] Allow passing options to customize PurgeCSS #31

mhdcodes opened this issue Sep 8, 2022 · 0 comments · Fixed by #33
Labels
enhancement New feature or request

Comments

@mhdcodes
Copy link
Member

mhdcodes commented Sep 8, 2022

Description

We need to allow passing certain options to the plugin to be passed to the underneath PurgeCSS.

Ref

Example

import { defineConfig } from 'astro/config';
import purgecss from "astro-purgecss";

// https://astro.build/config
export default defineConfig({
  integrations: [purgecss({
    fontFace: true,
    keyframes: true,
    variables: true,
    safelist: ['random', 'yep', 'button', /^nav-/]
  })]
});
@mhdcodes mhdcodes added the enhancement New feature or request label Sep 8, 2022
@mhdcodes mhdcodes changed the title [astro-purgecss] Allow passing options [astro-purgecss] Allow passing options to customize PurgeCSS Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant