Skip to content

Add an option to ignore postcss warnings #9597

@NikolayMakhonin

Description

@NikolayMakhonin

Description

I want to disable unnecessary postcss warning in the console, like this:

[vite:css] C:\projects\my-site\src\styles\mixins.pcss is empty

Suggested solution

I propose to add a new option similar to onwarn in rollup, in which it will be possible to filter postcss warnings. I think the warnings filter should be used here

Alternative

Put this comment into mixins.pcss file: /* The file is empty now */

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions