Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to purge correctly the css generated by nightwind ? #46

Open
dotdiego opened this issue Dec 13, 2021 · 3 comments
Open

How to purge correctly the css generated by nightwind ? #46

dotdiego opened this issue Dec 13, 2021 · 3 comments

Comments

@dotdiego
Copy link

dotdiego commented Dec 13, 2021

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")]
}
@jjranalli
Copy link
Owner

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

@LeMatosDeFuk
Copy link

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

@zephraph
Copy link

@jjranalli in #14 you described understanding the issue you were running into. Mind sharing that? If it's tractable, I could perhaps PR a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants