Skip to content

[bug] CompressStaticFilesStorage: "malformed css" error on collectstatic #565

@pandafy

Description

@pandafy

Describe the bug
The openwisp_utils.storage.CompressStaticFilesStorage backend causes collectstatic to fail when used in environments with the latest version of drf-yasg. The static files compressor (csscompressor) triggers ValueError: malformed css.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Set up a Django project using drf-yasg and configure openwisp_utils.storage.CompressStaticFilesStorage as the staticfiles backend
  2. Run collectstatic
  3. See error: ValueError: malformed css

Expected behavior
collectstatic completes successfully, even with modern CSS from third-party packages such as drf-yasg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions