Skip to content

How to build web components now, when the extractCss is deprecated? #22198

@ViktorMedvedchuk

Description

@ViktorMedvedchuk

Which @angular/* package(s) are the source of the bug?

compiler

Is this a regression?

No

Description

Option "extractCss" is deprecated: Deprecated since version 11.0.

How to build angular custom components now, in case we need styles.js, not styles.css

We can add --extractCss=false to the build script but anyway see the error in the console -
Option "extractCss" is deprecated: Deprecated since version 11.0. No longer required to disable CSS extraction for HMR.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

Option "extractCss" is deprecated: Deprecated since version 11.0. No longer required to disable CSS extraction for HMR.

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 12.0.2
Node: 14.17.5
Package Manager: npm 7.21.1
OS: win32 x64

Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1200.2 (cli-only)
@angular-devkit/core         12.0.2 (cli-only)
@angular-devkit/schematics   12.0.2 (cli-only)
@schematics/angular          12.0.2 (cli-only)

Anything else?

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