{"size": 1057, "ext": "js", "max_stars_repo_path": "frontend/postcss.config.js", "max_stars_repo_name": "vbstreetz/coin-price-bet", "max_stars_repo_stars_event_min_datetime": "2020-05-20T10:02:15.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-25T11:49:02.000Z", "max_issues_repo_path": "frontend/postcss.config.js", "max_issues_repo_name": "vbstreetz/coin-price-bet", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "frontend/postcss.config.js", "max_forks_repo_name": "vbstreetz/coin-price-bet", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.8157894737, "max_line_length": 83, "alphanum_fraction": 0.6083254494}
const cssnano = require('cssnano');
const postcssColorMod = require('postcss-color-mod-function');
const postcssPresetEnv = require('postcss-preset-env');
const postcssImport = require('postcss-import');
const postcssUrl = require('postcss-url');
const purgeCss = require('@fullhuman/postcss-purgecss');
const tailwindCss = require('tailwindcss');
const autoprefixer = require('autoprefixer');

const production = !process.env.ROLLUP_WATCH;

module.exports = {
  plugins: [
    postcssImport(),
    postcssUrl(),
    tailwindCss,
    autoprefixer,
    postcssPresetEnv({
      stage: 0,
      autoprefixer: {
        grid: true,
      },
    }),
    postcssColorMod(),
    cssnano({
      autoprefixer: false,
      preset: ['default'],
    }),
    // production &&
    //   purgeCss({
    //     content: ['./**/*.html', './**/*.svelte'],
    //     whitelistPatterns: [/nprogress/, /sweet-alert/],
    //     whitelist: ['nprogress', 'sweet-alert'],
    //     defaultExtractor: (content) => content.match(/[A-Za-z0-9-_:/]+/g) || [],
    //   }),
  ],
};
