Production Tailwind issue
Unanswered
Scottish Deerhound posted this in #help-forum
Scottish DeerhoundOP
I have an issue with Tailwind, NextJS & CI/CD pipelines in production.
My hope is to deploy my app using AWS S3 & CloudFront so
I am 80% sure the issue should be around conditional classes, NODE_ENV and PurgeCSS.
My problem is, if I build the project locally, even with NODE_ENV set to
If I build within Docker/ BitBucket Pipelines, "some" styles are missing.
Does anyone know anything that might be causing this, and how I can debug it locally?
My hope is to deploy my app using AWS S3 & CloudFront so
nextConfig.output="export" is defined.I am 80% sure the issue should be around conditional classes, NODE_ENV and PurgeCSS.
My problem is, if I build the project locally, even with NODE_ENV set to
production the build works flawlessly.If I build within Docker/ BitBucket Pipelines, "some" styles are missing.
Does anyone know anything that might be causing this, and how I can debug it locally?
1 Reply
Scottish DeerhoundOP
Weirdly this also seems to affect styles which are non-conditional,
<a className={'font-bold text-blue-400 hidden sm:block'} in this case the text-blue-400 is being ignored also...