Skip to content

[heft] SassPlugin Refactor & Improvements #2732

@halfnibble

Description

@halfnibble

Deliverables

Perform the following improvements/refactors to the current SassTypingsPlugin

  • Move SassTypingsPlugin to a separate plugin and rename to SassPlugin
  • The new SassPlugin should allow configuring the Sass transpiler (libsass vs dart-sass)
  • The new SassPlugin should output the transpiled CSS as .css files in the output directories
  • The new SassPlugin should provide a hook to register a callback for processing CSS as a string or JSON
  • The new SassPlugin should inject a pitching loading into an available Webpack config to map TS and JS imports of foo.scss and foo.sass to foo.css

Reasoning

We need to be able to perform custom processing of the output CSS and generate some custom files. However, we want to generally use Webpack loaders to process styles. This will reduce expensive duplication by only running Sass once.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

General Discussions

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions