我们如何在 NextJS - Material UI 应用程序中优化 css?

问题描述 投票:0回答:0

google core web vitals 抱怨没有优化 CSS。 两个要点-

  1. 减少未使用的 CSS(建议移动和桌面)
  2. Minify CSS(移动设备推荐)

我尝试使用@font-face 优化字体,但整体 CSS 似乎仍未优化。我有一个 NextJS 应用程序,我使用 MUI 进行样式设置。

没有使用 CSS 模块或样式组件。

css next.js next core-web-vitals css-purge
© www.soinside.com 2019 - 2024. All rights reserved.