Listory/frontend/postcss.config.js

18 lines
529 B
JavaScript
Raw Normal View History

const purgecss = require("@fullhuman/postcss-purgecss")({
// Specify the paths to all of the template files in your project
content: ["./public/**/*.html", "./src/**/*.tsx"],
// Include any special characters you're using in this regular expression
2020-05-02 18:41:57 +02:00
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
});
module.exports = {
plugins: [
require("postcss-import"),
require("tailwindcss"),
require("autoprefixer"),
2020-05-02 18:41:57 +02:00
...(process.env.NODE_ENV === "production" ? [purgecss] : []),
],
};