jjranalli/nightwind

How to purge correctly the css generated by nightwind ?

Opened this issue · 2 comments

Hello,

I'm using Tailwind 3.0

How can i remove unused css using nightwind ?

I'm getting a 650 kB output file with a 3 kB input file.

current tailwind.config.js looks like this

Cleaning of unused css is not happening when i use nightwind plugin, but it happens correctly when i remove it.

module.exports = {
    content: [
        './**/*.{html,razor}'
    ],
    darkMode: 'class', // or 'media' or 'class'
    theme: {
        extend: {}
    },
    variants: {
        extend: {}
    },
    plugins: [require("nightwind")]
}

This is due to a known issue caused by JIT #14. Future versions of the package will fix this

@jjranalli Hi, when can we expect next version with this fix?