cssinjs/jss

Issue with SheetRegistry.toString({format: false}) minifyer - part of the css is not minified

开放

#1,566 创建于 2021年10月19日

 (9 条评论) (0 个反应) (0 位负责人)JavaScript (434 个派生)batch import
bugcomplexity:lowhelp wantedneeds reproductionneeds tests

仓库指标

星标
 (7,000 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Expected behavior: Minify all the server-side CSS.

Describe the bug: Font faces and CSS variables are not getting minified In Next.js app.

Reproduction: Create CSS file with CSS variables and font faces, and get the registry string with Registry.toString({format: false})

Versions (please complete the following information):

  • react-jss: 10.8.0
  • Browser [e.g. chrome, safari]: chrome
  • OS [e.g. Windows, macOS]: macOS Feel free to add any additional versions which you may think are relevant to the bug.

Managing expectations:

Maintainers will not be fixing the problem you have unless they have it too, if you want it to get fixed:

  1. Submit a PR with a failing test
  2. Discuss a solution
  3. Implement it

You can also do the first step only and wait for someone else to work on a fix. Anything is much better than nothing.

贡献者指南