Bud Purgecss

Hi…
I am trying to get purgecss working on a fresh install of sage 10 .

I have put it in the bud.config.js - and used changed it to match the new syntax in sage 10 6.4 - and it seems to run - but when I do a yarn build - it throws all styles away.

I am using bud-scss as well

My bud.config.js
import purgeCssWordPress from ‘purgecss-with-wordpress’;

/**

/**

/**

/**

  • Generate WordPress theme.json
  • @note This overwrites theme.json on every build.
  • @see {@link https://bud.js.org/extensions/sage/theme.json}
  • @see {@link https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-json}
    */
    app.wpjson
    .set(‘settings.color.custom’, false)
    .set(‘settings.color.customDuotone’, false)
    .set(‘settings.color.customGradient’, false)
    .set(‘settings.color.defaultDuotone’, false)
    .set(‘settings.color.defaultGradients’, false)
    .set(‘settings.color.defaultPalette’, false)
    .set(‘settings.color.duotone’, )
    .set(‘settings.custom.spacing’, {})
    .set(‘settings.custom.typography.font-size’, {})
    .set(‘settings.custom.typography.line-height’, {})
    .set(‘settings.spacing.padding’, true)
    .set(‘settings.spacing.units’, [‘px’, ‘%’, ‘em’, ‘rem’, ‘vw’, ‘vh’])
    .set(‘settings.typography.customFontSize’, false)
    .useTailwindColors()
    .useTailwindFontFamily()
    .useTailwindFontSize()
    .enable();

/**

  • PurgeCSS
    /
    app.purgecss({
    content: [app.path('resources/views/**/
    .blade.php’)],
    safelist: […purgeCssWordPress.safelist],
    });
    };

Got it to work - changed the purgecss to the following
/**

  • PurgeCSS
    /
    app.purgecss({
    content: [app.path('resources/views/**/
    ')],
    safelist: { …purgeCssWordPress.safelist, standard: [‘html’, ‘body’] },
    });

And moved it over setPublicPath - then everything works like a charm.