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

JS API: Missing options in new compile method #1585

Closed
glenn2223 opened this issue Jan 3, 2022 · 1 comment
Closed

JS API: Missing options in new compile method #1585

glenn2223 opened this issue Jan 3, 2022 · 1 comment

Comments

@glenn2223
Copy link

Finally got round to implementing the new compile method instead of the deprecated renderSync. However, I noticed there were a few missing options that I hadn't picked up on before.

Can the linefeed, indentType, indentWidth be added as options on the new methods? I went over the issues/discussions and couldn't see any reference as to why they might have been left out (sorry if there was and I missed it).

@nex3
Copy link
Contributor

nex3 commented Jan 4, 2022

There are no plans to add these options. They were only supported in the old API for compatibility with Node Sass, and they generally go against Sass's philosophy of not providing deep output customization. If you really want specific formatting for your CSS, I recommend writing a custom PostCSS plugin to do so after the Sass is compiled.

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

No branches or pull requests

2 participants