fix: add bg-color classes in tailwind safelist

This commit is contained in:
axolotle 2024-02-17 03:59:19 +01:00
parent d01074cef1
commit 2d652abc2f

View file

@ -1,7 +1,21 @@
module.exports = { module.exports = {
// Safelisting some classes to avoid content purge // Safelisting some classes to avoid content purge
plugins: [require('daisyui')], plugins: [require('daisyui')],
safelist: ['safelisted'], safelist: [
'safelisted',
'bg-primary',
'bg-secondary',
'bg-accent',
'bg-neutral',
'bg-base-100',
'bg-base-200',
'bg-base-300',
'bg-base-content',
'bg-info',
'bg-success',
'bg-warning',
'bg-error',
],
daisyui: { daisyui: {
themes: true, themes: true,
}, },