Created
January 5, 2020 01:11
-
-
Save danestves/a70a5214d76c9a88893eb614c80c3cf0 to your computer and use it in GitHub Desktop.
PostCSS config for TailwindCSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
plugins: [ | |
require("postcss-easy-import"), | |
require("tailwindcss"), | |
process.env.NODE_ENV === "production" && | |
require("@fullhuman/postcss-purgecss")({ | |
content: [ | |
"./src/pages/**/*.{js,jsx,ts,tsx}", | |
"./src/components/**/*.{js,jsx,ts,tsx}", | |
], | |
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || [], | |
}), | |
require("autoprefixer"), | |
require("cssnano"), | |
], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment