/sass-with-python

Python sass compilation

Primary LanguageHTML

Basic sass compilation with python library libsass

Just a little script to compile scss to css file.

Links

Python side

Requirements

  • Python 3.6 (because of f-strings)
  • libsass python module

lib installation

On Linux system:

  1. python -m venv venv*
  2. . venv/bin/activate
  3. pip install libsass

*you can skip virtualenv step if you are a dirty dev.

How to

This version of the script convert a file named main.scss to a file named main.css. main.scss have to be next to compile.py, main.css will be created at the same place, and overwritten each time compile.py is runned.

  1. create a valid scss file named main.scss
  2. run the script with python compile.py