Skip to content

Karma builder: support sass in stylePreprocessorOptions with "builderMode: application" #29185

@cexbrayat

Description

@cexbrayat

Command

test

Description

It is currently impossible to define the sass option in stylePreprocessorOptions for the Karma builder, which makes it impossible to silence Sass deprecations with "builderMode: application."

"test": {
  "builder": "@angular-devkit/build-angular:karma",
  "options": {
  "builderMode": "application",
  "stylePreprocessorOptions": {
    "sass": {
      "silenceDeprecations": ["import"]
    }
  },

throws:

Error: Schema validation failed with the following errors:
  Data path "/stylePreprocessorOptions" must NOT have additional properties(sass).

Describe the solution you'd like

stylePreprocessorOptions allows to set includePaths but it would be great to handle sass options as well, like the application builder does.

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions