Skip to content

Messes up Web app when building nextjs for the second time #28

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

Open
nilansaha opened this issue Jun 18, 2023 · 5 comments
Open

Messes up Web app when building nextjs for the second time #28

nilansaha opened this issue Jun 18, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@nilansaha
Copy link

nilansaha commented Jun 18, 2023

It works as it should the first time I use

npm run dev
npm run start

to build the Next.js production build. But the second time I run the same commands, it messes up the entire website. Any way to fix this?

@sonofmagic
Copy link
Owner

Yes, I found this problem too.
Currently my plugin has some issues with server side render frameworks like nextjs, I'm looking for the cause and trying to fix it. A single page application should be fine.

@sonofmagic sonofmagic added the bug Something isn't working label Jun 19, 2023
@nilansaha
Copy link
Author

Thanks. Would really appreciate a fix. Its a great plugin and does its work wonderfully.

@sonofmagic
Copy link
Owner

Hi, unplugin-tailwindcss-mangle@2.0.6 is release, This version has fixed this issue. Have a try! :)

@nilansaha
Copy link
Author

Thanks. Will try it out.

@TheDevMinerTV
Copy link

After patching @tailwindcss/mangle to work properly with Next.js v14.2.7 using this patch, it's not emitting the new classes but the HTML got rewritten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants