text: const tailwindcss = require('tailwindcss');
  const autoprefixer = require('autoprefixer');
  const postcssImport = require('postcss-import');
  const cssnano = require('cssnano')({
    preset: [
      'default',
      {
        discardComments: {
          removeAll: true,
        },
      },
    ],
  });
  const purgecss = require('@fullhuman/postcss-purgecss')({
    content: ['./src/**/*.svelte', './public/**/*.html'],
    defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || [],
  });
  
  module.exports = {
    plugins: [
      postcssImport,
      tailwindcss,
      autoprefixer,
      ...(process.env.NODE_ENV === 'production' ? [purgecss, cssnano] : []),
    ],
  };
  