Skip to main content
Sign in
Snippets Groups Projects
Select Git revision
  • 815c4b2386713566f9607671fc999fa172b5900e
  • master default protected
  • plf-2023
  • try-jest-testing-framework
  • add-csg-retraite
5 results

postcss.config.cjs

Blame
  • Forked from leximpact / Simulateur socio-fiscal / leximpact-socio-fiscal-ui
    Source project has a limited visibility.
    postcss.config.cjs 488 B
    const tailwindcss = require("tailwindcss")
    const autoprefixer = require("autoprefixer")
    const cssnano = require("cssnano")
    
    const mode = process.env.NODE_ENV
    const dev = mode === "development"
    
    const config = {
      plugins: [
        // Some plugins, like postcss-nested, need to run before Tailwind.
        tailwindcss(),
        // But others, like autoprefixer, need to run after.
        autoprefixer(),
        !dev &&
          cssnano({
            preset: "default",
          }),
      ],
    }
    
    module.exports = config