leodido / postcss-clean

PostCss plugin to minify your CSS with clean-css
MIT License
41 stars 8 forks source link

postcss plugin - postcss.config.js #70

Open skandasoft opened 3 years ago

skandasoft commented 3 years ago

I tried adding postcss-clean to the config.js doesn't seem to work..what am i missing.

const purgecss = require('@fullhuman/postcss-purgecss');
const clean = require('postcss-clean');
module.exports = {
  plugins: [
    require('tailwindcss'),
    require('autoprefixer'),
    process.env.NODE_ENV === 'production' &&
      purgecss({
        content: ['./**/*.html'],
      }),
    require('postcss-nested'),
    require('postcss-clean'),
  ],
};