Nextjs 使用 Tailwind 在构建模式期间中断布局

问题描述

我有这个在开发模式下完美运行的仪表板布局。

enter image description here

但是一旦我构建了 nextjs 项目,它就会破坏布局。

enter image description here

我正在使用 Tailwind css 和 preact 进行生产。 任何帮助将不胜感激。

解决方法

通过在像这样的清除数组中添加 taliwind.config.js 中包含 tailwind css 的所有文件夹来修复构建...

enter image description here