Skip to content

Instantly share code, notes, and snippets.

@andybp85
Created August 6, 2024 11:17
Show Gist options
  • Save andybp85/b9eddaf5a9db5ffcddfbfa91d66998fa to your computer and use it in GitHub Desktop.
Save andybp85/b9eddaf5a9db5ffcddfbfa91d66998fa to your computer and use it in GitHub Desktop.
dart sass in python
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