Skip to content

Error in PostCSS + tailwind doesn't break the build #30573

Closed as not planned
Closed as not planned
@noguespi

Description

@noguespi

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

With postcss + tailwind, when I have an error in a css file, it displays a big red error in the logs, but the build continue and is done successfuly.

Minimal Reproduction

Steps to reproduce:

  • create a new angular project with default options.
  • npm install tailwindcss @tailwindcss/postcss postcss --force
  • create the .postcssrc.json with
{
  "plugins": {
    "@tailwindcss/postcss": {}
  }
}
  • add the follwing in the css of a component @reference "not-found.css";
  • npm run build

The error is displayed but the build continue and is successful.

Exception or Error


Your Environment

Angular CLI: 20.0.3
Node: 20.19.2
Package Manager: npm 11.4.1
OS: linux x64

Angular: 20.0.4
... common, compiler, compiler-cli, core, forms
... platform-browser, router

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.2000.3
@angular-devkit/core         20.0.3
@angular-devkit/schematics   20.0.3
@angular/build               20.0.3
@angular/cli                 20.0.3
@schematics/angular          20.0.3
rxjs                         7.8.2
typescript                   5.8.3

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions