Skip to content

Not pugre css 1.6.1 ! #2111

Answered by pruginkin
pruginkin asked this question in Help
Aug 2, 2020 · 4 comments · 3 replies
Discussion options

You must be logged in to vote

I FIX IT ! add @fullhuman/postcss-purgecss")({ keyframes: true})

postcss.config.js

const cssnano = require("cssnano")({ preset: "default" });
const tailwindcss = require("tailwindcss");
const autoprefixer = require('autoprefixer')({ overrideBrowserslist: ['last 2 versions'] });

const purgecss = require("@fullhuman/postcss-purgecss")({
    content: ["./src/**/*.svelte", "./src/**/*.html"],
    keyframes: true,
    defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || []
});

const production = process.env.NODE_ENV === 'production';

module.exports = {
    plugins: [
        tailwindcss, ...(production ? [purgecss, autoprefixer, cssnano] : []),
    ]
};

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@pruginkin
Comment options

@pruginkin
Comment options

Comment options

You must be logged in to vote
1 reply
@pruginkin
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by pruginkin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2111 on August 02, 2020 20:19.