Created
August 6, 2024 11:17
-
-
Save andybp85/b9eddaf5a9db5ffcddfbfa91d66998fa to your computer and use it in GitHub Desktop.
dart sass in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
def _make_css(sass_file_path: str) -> str: | |
css_output = subprocess.run( | |
['sass', sass_file_path, '-I', 'sass-partials', '-s', 'compressed'], | |
stdout=subprocess.PIPE, | |
text=True | |
) | |
return css_output.stdout | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment