Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[heft] SassPlugin Refactor & Improvements #2732

Open
5 tasks
halfnibble opened this issue Jun 9, 2021 · 1 comment
Open
5 tasks

[heft] SassPlugin Refactor & Improvements #2732

halfnibble opened this issue Jun 9, 2021 · 1 comment
Assignees

Comments

@halfnibble
Copy link
Contributor

halfnibble commented Jun 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: General Discussions
Development

No branches or pull requests

3 participants