-
-
Notifications
You must be signed in to change notification settings - Fork 4
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 use with Next.js? #15
Comments
Did you figure it out @zwying0814 ? |
@zwying0814 @nilansaha what's the exact problem?? |
Can you add some instruction. Like which commands to run in sequence to generate obfuscated production build? |
Hi, I am trying to implement the obfuscator into my project which is built with create T3 app(also using nextjs) with tailwind. Here is my The CSS is obfuscated successfully but the rendered HTML still uses the tailwind classname How can I make it work? |
I'm also having this same issue with Nuxt.js |
It is not updated for the new version of NextJS 13+ app folder not working It would be nice if there was an option to choose the route of our components |
Temporary solution at least it worked for me, NextJS 13.4.7 app/page router package.json postcss.config.js Do not run any start, dev, test, build commands Before following the steps, delete PostCSS Obfuscator generated folder and files, (css-obfuscator and other folders and files) Have the packages installed: 1 - Only run 1 time
Don't run the command twice, npm run tailwindPostcss Do not execute any command, dev, build, start 2 - It will generate the files with the obfuscated styles What I do is copy the obfuscated files and replace it in a new folder In the new folder I uninstall the postcss-obfuscator package Sometimes you have to replace the style.css file, with the obfuscated style.css file I don't know if my English is good |
How do I get this to work with Nextjs 13 without Tailwind? |
For anyone who still wants to obfuscate his/her code in Next.js, |
Thank you for developing such a great library, but how can it be used in Next.js? Please give me some advice, thank you
The text was updated successfully, but these errors were encountered: